Skip to content

Commit 6fe3919

Browse files
committed
Fix/improve some install/uninstall make targets
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 87d51de commit 6fe3919

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

makefile_include.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,22 +494,23 @@ $(DESTDIR)$(BINPATH):
494494
install -p -d $(DESTDIR)$(BINPATH)
495495

496496
.common_install_bins: $(USEFUL_DEMOS) $(DESTDIR)$(BINPATH)
497-
for d in $(USEFUL_DEMOS); do $(INSTALL_CMD) -p -m 775 $$d $(DESTDIR)$(BINPATH)/ltc-$$d
497+
for d in $(USEFUL_DEMOS); do $(INSTALL_CMD) -p -m 775 $$d $(DESTDIR)$(BINPATH)/ltc-$$d; done
498498
$(INSTALL_CMD) -p -m 775 demos/ltc $(DESTDIR)$(BINPATH)
499499

500500
install_docs: $(call print-help,install_docs,Installs the Developer Manual) doc/crypt.pdf
501501
install -p -d $(DESTDIR)$(DATAPATH)
502502
install -p -m 644 doc/crypt.pdf $(DESTDIR)$(DATAPATH)
503503

504504
install_test: $(call print-help,install_test,Installs the self-test binary) test $(DESTDIR)$(BINPATH)
505-
$(INSTALL_CMD) -p -m 775 $< $(DESTDIR)$(BINPATH)
505+
$(INSTALL_CMD) -p -m 775 $< $(DESTDIR)$(BINPATH)/ltc-$<
506506

507507
install_hooks: $(call print-help,install_hooks,Installs the git hooks)
508508
for s in `ls hooks/`; do ln -s ../../hooks/$$s .git/hooks/$$s; done
509509

510510
HEADER_FILES=$(notdir $(HEADERS_PUB))
511511
.common_uninstall:
512512
$(UNINSTALL_CMD) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
513+
for d in $(USEFUL_DEMOS) test; do rm -f $(DESTDIR)$(BINPATH)/ltc-$$d; done
513514
$(UNINSTALL_CMD) $(HEADER_FILES:%=$(DESTDIR)$(INCPATH)/%)
514515

515516
#This rule cleans the source tree of all compiled code, not including the pdf

0 commit comments

Comments
 (0)