Add $(DESTDIR) to make install target

vmware
Howard Chu 12 years ago
parent 3394bac2c0
commit 66c9f03055
  1. 6
      libraries/liblmdb/Makefile

@ -13,9 +13,9 @@ PROGS = $(IPROGS) mtest mtest2 mtest3 mtest4 mtest5
all: $(ILIBS) $(PROGS) all: $(ILIBS) $(PROGS)
install: $(ILIBS) $(IPROGS) $(IHDRS) install: $(ILIBS) $(IPROGS) $(IHDRS)
cp $(IPROGS) $(prefix)/bin cp $(IPROGS) $(DESTDIR)$(prefix)/bin
cp $(ILIBS) $(prefix)/lib cp $(ILIBS) $(DESTDIR)$(prefix)/lib
cp $(IHDRS) $(prefix)/include cp $(IHDRS) $(DESTDIR)$(prefix)/include
clean: clean:
rm -rf $(PROGS) *.[ao] *.so *~ testdb rm -rf $(PROGS) *.[ao] *.so *~ testdb

Loading…
Cancel
Save