--- ./Makefile.orig 2013-08-13 20:58:36.000000000 +0200 +++ ./Makefile 2013-08-14 14:40:58.335943659 +0200 @@ -11,16 +11,6 @@ MAN = $(DESTDIR)/usr/local/man endif -ifeq ($(DEBUG),) - override CPPFLAGS += -DNDEBUG - CFLAGS += -O3 #-fno-stack-protector #-march=native - LDFLAGS += -O3 #-march=native -else - override CPPFLAGS += -DDEBUG - CFLAGS += -g #-pg - LDFLAGS += -g #-pg -endif - CC ?= gcc GZIP = gzip -9 -c RM = rm -rf @@ -47,12 +37,12 @@ override CPPFLAGS += $(shell cat $(BINS)/autoconf.cppflags) -all: tthsum manual test runtest +all: tthsum manual -install: tthsum manual test runtest - install -d $(BIN) $(MAN)/man1 - install $(BINS)/tthsum $(BIN) - install -m644 $(SHARES)/tthsum.1.gz $(MAN)/man1 +install: tthsum manual + install -d $(BIN) $(STAGEDIR)$(MANPREFIX)/man/man1 + install $(BINS)/tthsum $(STAGEDIR)$(PREFIX)/bin + install -m644 $(SHARES)/tthsum.1.gz $(STAGEDIR)$(MANPREFIX)/man/man1 uninstall: $(RM) $(BIN)/tthsum