summaryrefslogtreecommitdiff
blob: 2d79d80ef7bc00db0c8b3ae6d87967995e632207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- 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