Makefile tweaking

This commit is contained in:
ian 1998-09-29 22:42:07 +00:00
parent c0e748bc10
commit e0e2b2d817
2 changed files with 7 additions and 10 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 1998/09/29 22:20:22 ian Exp $
# $OpenBSD: Makefile,v 1.4 1998/09/29 22:42:07 ian Exp $
#
PKGNAME= idiff-1.0
@ -10,6 +10,6 @@ MAINTAINER= ian@openbsd.org
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/idiff ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/idiff.cat ${PREFIX}/man/cat1/idiff.0
${INSTALL_MAN} ${WRKSRC}/idiff.cat1 ${PREFIX}/man/cat1/idiff.0
.include <bsd.port.mk>

View File

@ -1,18 +1,15 @@
--- Makefile.orig Wed Sep 16 15:56:29 1998
+++ Makefile Tue Sep 29 18:01:31 1998
@@ -1,7 +1,10 @@
+++ Makefile Tue Sep 29 18:40:22 1998
@@ -1,7 +1,7 @@
-all: idiff
+CFLAGS += -g
+
+PROG = idiff
-idiff: idiff.c
- $(CC) idiff.c -o idiff
+PROG = idiff
+all: idiff
-clean:
- rm -f *.o a.out
+all: idiff idiff.0
+
+idiff.0: idiff.1
+ nroff -man $? > $@
+
+.include <bsd.prog.mk>