parent
cd6e602b48
commit
e68d846429
@ -47,8 +47,8 @@ $(LIBNAME): $(OBJECTS)
|
|||||||
|
|
||||||
install: .common_install
|
install: .common_install
|
||||||
sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > libtomcrypt.pc
|
sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > libtomcrypt.pc
|
||||||
install -d $(DESTDIR)/$(LIBPATH)/pkgconfig
|
install -d $(DESTDIR)$(LIBPATH)/pkgconfig
|
||||||
install -m 644 libtomcrypt.pc $(DESTDIR)/$(LIBPATH)/pkgconfig/
|
install -m 644 libtomcrypt.pc $(DESTDIR)$(LIBPATH)/pkgconfig/
|
||||||
|
|
||||||
install_bins: .common_install_bins
|
install_bins: .common_install_bins
|
||||||
|
|
||||||
|
@ -272,17 +272,17 @@ clean:
|
|||||||
|
|
||||||
#Install the library + headers
|
#Install the library + headers
|
||||||
install: $(LIBMAIN_S) $(HEADERS)
|
install: $(LIBMAIN_S) $(HEADERS)
|
||||||
@mkdir -p $(DESTDIR)/$(INCPATH) $(DESTDIR)/$(LIBPATH)/pkgconfig
|
@mkdir -p $(DESTDIR)$(INCPATH) $(DESTDIR)$(LIBPATH)/pkgconfig
|
||||||
@cp $(LIBMAIN_S) $(DESTDIR)/$(LIBPATH)/
|
@cp $(LIBMAIN_S) $(DESTDIR)$(LIBPATH)/
|
||||||
@cp $(HEADERS) $(DESTDIR)/$(INCPATH)/
|
@cp $(HEADERS) $(DESTDIR)$(INCPATH)/
|
||||||
@sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > $(DESTDIR)/$(LIBPATH)/pkgconfig/libtomcrypt.pc
|
@sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION),' libtomcrypt.pc.in > $(DESTDIR)$(LIBPATH)/pkgconfig/libtomcrypt.pc
|
||||||
|
|
||||||
#Install useful tools
|
#Install useful tools
|
||||||
install_bins: hashsum
|
install_bins: hashsum
|
||||||
@mkdir -p $(DESTDIR)/$(BINPATH)
|
@mkdir -p $(DESTDIR)$(BINPATH)
|
||||||
@cp hashsum $(DESTDIR)/$(BINPATH)/
|
@cp hashsum $(DESTDIR)$(BINPATH)/
|
||||||
|
|
||||||
#Install documentation
|
#Install documentation
|
||||||
install_docs: doc/crypt.pdf
|
install_docs: doc/crypt.pdf
|
||||||
@mkdir -p $(DESTDIR)/$(DATAPATH)
|
@mkdir -p $(DESTDIR)$(DATAPATH)
|
||||||
@cp doc/crypt.pdf $(DESTDIR)/$(DATAPATH)/
|
@cp doc/crypt.pdf $(DESTDIR)$(DATAPATH)/
|
||||||
|
@ -362,18 +362,18 @@ install_all: install install_bins install_docs install_test
|
|||||||
INSTALL_OPTS ?= -m 644
|
INSTALL_OPTS ?= -m 644
|
||||||
|
|
||||||
.common_install: $(LIBNAME)
|
.common_install: $(LIBNAME)
|
||||||
install -d $(DESTDIR)/$(INCPATH)
|
install -d $(DESTDIR)$(INCPATH)
|
||||||
install -d $(DESTDIR)/$(LIBPATH)
|
install -d $(DESTDIR)$(LIBPATH)
|
||||||
$(INSTALL_CMD) $(INSTALL_OPTS) $(LIBNAME) $(DESTDIR)/$(LIBPATH)/$(LIBNAME)
|
$(INSTALL_CMD) $(INSTALL_OPTS) $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
|
||||||
install -m 644 $(HEADERS) $(DESTDIR)/$(INCPATH)
|
install -m 644 $(HEADERS) $(DESTDIR)$(INCPATH)
|
||||||
|
|
||||||
.common_install_bins: $(USEFUL_DEMOS)
|
.common_install_bins: $(USEFUL_DEMOS)
|
||||||
install -d $(BINPATH)
|
install -d $(DESTDIR)$(BINPATH)
|
||||||
$(INSTALL_CMD) -m 775 $(USEFUL_DEMOS) $(DESTDIR)/$(BINPATH)
|
$(INSTALL_CMD) -m 775 $(USEFUL_DEMOS) $(DESTDIR)$(BINPATH)
|
||||||
|
|
||||||
install_docs: doc/crypt.pdf
|
install_docs: doc/crypt.pdf
|
||||||
install -d $(DATAPATH)
|
install -d $(DESTDIR)$(DATAPATH)
|
||||||
install -m 644 doc/crypt.pdf $(DESTDIR)/$(DATAPATH)
|
install -m 644 doc/crypt.pdf $(DESTDIR)$(DATAPATH)
|
||||||
|
|
||||||
install_hooks:
|
install_hooks:
|
||||||
for s in `ls hooks/`; do ln -s ../../hooks/$$s .git/hooks/$$s; done
|
for s in `ls hooks/`; do ln -s ../../hooks/$$s .git/hooks/$$s; done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user