From 2a94ebced6b349b36bfd7b9e1adc3c0f06e2faea Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 30 Nov 2012 12:39:53 -0800 Subject: [PATCH] Add install target --- libraries/libmdb/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/libraries/libmdb/Makefile b/libraries/libmdb/Makefile index 5c206f2238..5019217670 100644 --- a/libraries/libmdb/Makefile +++ b/libraries/libmdb/Makefile @@ -4,9 +4,18 @@ OPT = -O2 -g CFLAGS = -pthread $(OPT) $(W) $(XCFLAGS) LDLIBS = SOLIBS = - -PROGS = mdb_stat mdb_copy mtest mtest2 mtest3 mtest4 mtest5 -all: liblmdb.a liblmdb.so $(PROGS) +prefix = /usr/local + +IHDRS = lmdb.h +ILIBS = liblmdb.a liblmdb.so +IPROGS = mdb_stat mdb_copy +PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5 +all: $(ILIBS) $(PROGS) + +install: $(ILIBS) $(IPROGS) $(IHDRS) + cp $(IPROGS) $(prefix)/bin + cp $(ILIBS) $(prefix)/lib + cp $(IHDRS) $(prefix)/include clean: rm -rf $(PROGS) *.[ao] *.so *~ testdb -- 2.39.5