blob: b795ce70d3a24b0f435b351acd2e9b8c84c1fa0c (
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.4 2012/08/28 17:14:13 is Exp $
--- Makefile.orig 2003-01-21 03:04:36.000000000 +0000
+++ Makefile
@@ -1,15 +1,14 @@
# Makefile for phoon
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/${PKGMANDIR}/man1
+
+INSTALL = install
DEFINES = -DOS_BSD
#DEFINES = -DOS_SYSV
-CC = gcc
-CFLAGS = -O $(DEFINES)
-
-LDFLAGS = -s
+CFLAGS = $(DEFINES)
all: phoon
@@ -24,10 +23,8 @@ date_parse.o: date_parse.h
astro.o: astro.h
install: all
- rm -f $(BINDIR)/phoon
- cp phoon $(BINDIR)
- rm -f $(MANDIR)/phoon.1
- cp phoon.1 $(MANDIR)
+ ${BSD_INSTALL_PROGRAM} phoon ${DESTDIR}$(BINDIR)
+ ${BSD_INSTALL_MAN} phoon.1 ${DESTDIR}$(MANDIR)
clean:
rm -f phoon *.o a.out core
|