summaryrefslogtreecommitdiff
path: root/time/globe/patches/patch-aa
blob: 536997d61c3829f2995e3b4732466863002b52c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$NetBSD: patch-aa,v 1.2 2008/06/20 01:09:39 joerg Exp $

--- Makefile.orig	Fri Nov 10 20:11:03 1995
+++ Makefile
@@ -1,17 +1,15 @@
 # CONFIGURE: the directory where you want the executables installed.
-BINDIR =	/usr/local/bin
+BINDIR =	${PREFIX}/bin
 
 # CONFIGURE: the directory tree where you want the man pages installed.
-MANDIR =	/usr/local/man
+MANDIR =	${PREFIX}/man/man1
 
 # CONFIGURE: your favorite C compiler.
-CC =		gcc
 
 # CONFIGURE: your favorite C flags.
-CFLAGS =	-O
+CFLAGS =	-O2
 
 # CONFIGURE: your favorite linker flags.
-LDFLAGS =	-s
 
 all:		globe
 
@@ -19,10 +17,8 @@
 	$(CC) $(CFLAGS) globe.c $(LDFLAGS) -o globe
 
 install:	all
-	rm -f $(BINDIR)/globe
-	cp globe $(BINDIR)
-	rm -f $(MANDIR)/man1/globe.1
-	cp globe.1 $(MANDIR)/man1
+	${BSD_INSTALL_PROGRAM} globe ${DESTDIR}$(BINDIR)
+	${BSD_INSTALL_MAN} globe.1 ${DESTDIR}$(MANDIR)
 
 clean:
 	rm -f globe a.out core