aboutsummaryrefslogtreecommitdiff
path: root/editors/uzap/files/patch-Makefile
blob: a3944b7d6768e1c0529e982b2a8dc4d8deb7f224 (plain) (blame)
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
39
40
41
42
--- Makefile.orig	1989-03-30 18:04:11 UTC
+++ Makefile
@@ -1,26 +1,28 @@
 # Makefile for Uzap.
-BINDIR = /usr/local
-MANDIR = /usr/man/manl
-MSECT = l
+BINDIR = ${PREFIX}/bin/
+MANDIR = ${PREFIX}/share/man/man1
+MSECT = 1
+
+all: uzap
 
 uzap: uzap.o edit.o search.o screen.o
-	cc -O uzap.o edit.o search.o screen.o -lcurses -ltermcap -o uzap
+	$(CC) $(CFLAGS) uzap.o edit.o search.o screen.o $(LDFLAGS) -lncurses -o uzap
 
 uzap.o: uzap.c 
-	cc -c -O uzap.c  
+	$(CC) -c $(CFLAGS) uzap.c  
 
 edit.o: edit.c
-	cc -c -O edit.c 
+	$(CC) -c $(CFLAGS) edit.c 
 
 search.o: search.c
-	cc -c -O search.c
+	$(CC) -c $(CFLAGS) search.c
 
 screen.o: screen.c
-	cc -c -O screen.c
+	$(CC) -c $(CFLAGS) screen.c
 
 install: uzap
-	install -s -m 771 uzap $(BINDIR)
-	install -c -m 664 uzap.man $(MANDIR)/uzap.$(MSECT)
+	$(BSD_INSTALL_PROGRAM) uzap $(DESTDIR)$(BINDIR)
+	$(BSD_INSTALL_MAN) uzap.man $(DESTDIR)$(MANDIR)/uzap.$(MSECT)
 
 clean:
-	rm -f *.o core uzap
+	rm -f *.o core *.core uzap