diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 41 |
1 files changed, 25 insertions, 16 deletions
@@ -10,24 +10,28 @@ include mk/after-config.mk OBJ =\ anysum.o\ - patheq.o\ - openfile.o\ - hex.o\ - writeall.o\ - barrierwait.o\ - barriersend.o\ - format_result.o\ - feedbuffer.o\ - createbarriergroup.o\ - killbarriergroup.o\ - inithashers.o\ - destroyhashers.o\ - shiftbuffer.o\ - calculate.o + get.o\ + check.o\ + barrier.o\ + hash.o\ + write.o\ + open.o\ + read.o\ + proc.o\ + command.o\ + opts.o\ + cmdline_bsum.o\ + cmdline_sha3sum.o\ + cmdline_other.o\ + cmdline.o HDR =\ common.h +MAN1 =\ + anysum.1\ + $(ALIASES:=.1) + all: anysum $(OBJ): $(HDR) @@ -41,11 +45,16 @@ install: anysum mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" cp -- anysum "$(DESTDIR)$(PREFIX)/bin/" - cp -- anysum.1 "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- $(MAN1) "$(DESTDIR)$(MANPREFIX)/man1/" + set -e; for a in $(ALIASES); do\ + test ! -d "$(DESTDIR)$(PREFIX)/bin/$$a";\ + ln -sf -- anysum "$(DESTDIR)$(PREFIX)/bin/$$a";\ + done uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/bin/anysum" - -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/anysum.1" + -cd -- "$(DESTDIR)$(MANPREFIX)/man1/" && rm -f -- $(MAN1) + -cd -- "$(DESTDIR)$(PREFIX)/bin/" && rm -f -- $(ALIASES) clean: -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda |