1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/editors/uzap/files/patch-a
2003-10-19 09:25:58 +00:00

43 lines
1001 B
Plaintext

--- Makefile.orig Thu Mar 30 10:04:11 1989
+++ Makefile Sun Oct 19 02:17:28 2003
@@ -1,26 +1,28 @@
# Makefile for Uzap.
-BINDIR = /usr/local
-MANDIR = /usr/man/manl
-MSECT = l
+BINDIR = ${PREFIX}/bin/
+MANDIR = ${PREFIX}/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 -lcurses -ltermcap -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)
+ install -s -m 755 -o bin -g bin uzap $(BINDIR)
+ install -c -m 644 -o bin -g bin uzap.man $(MANDIR)/uzap.$(MSECT)
clean:
- rm -f *.o core uzap
+ rm -f *.o core *.core uzap