--- a/Makefile +++ b/Makefile @@ -1,16 +1,11 @@ # $Id: Makefile,v 1.2 2002/12/15 19:58:36 marvin Exp $ -CC=gcc -CFLAGS=-Wall -w -pedantic all: pipebench doc: pipebench.1 install: pipebench - cp pipebench /usr/local/bin/ - cp pipebench.1 /usr/local/man/man1/ - -pipebench: pipebench.c - $(CC) $(CFLAGS) -o pipebench pipebench.c + mkdir -p $(DESTDIR)$(EPREFIX)/usr/bin && cp pipebench $(DESTDIR)$(EPREFIX)/usr/bin/ + mkdir -p $(DESTDIR)$(EPREFIX)/usr/share/man/man1 && cp pipebench.1 $(DESTDIR)$(EPREFIX)/usr/share/man/man1/ pipebench.1: pipebench.yodl yodl2man -o pipebench.1 pipebench.yodl