to make diff/Makefile consistent with other Makefiles
diff -r 3314f6c2b58a diff/Makefile
--- a/diff/Makefile	Sun May 08 08:26:38 2011 +0000
+++ b/diff/Makefile	Sun May 22 00:52:01 2011 +0200
@@ -1,35 +1,8 @@
-# diff - diff shell unix port from plan9
+# diff - diff unix port from plan9
 # Depends on ../lib9
 
 TARG      = diff
 OFILES    = diffdir.o diffio.o diffreg.o main.o
 MANFILES  = diff.1
 
-include ../config.mk
-
-all: ${TARG}
-	@strip ${TARG}
-	@echo built ${TARG}
-
-install: ${TARG}
-	@mkdir -p ${DESTDIR}${PREFIX}/bin
-	@cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
-	@chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
-	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
-	@cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
-	@chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
-
-uninstall:
-	rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
-	rm -f ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
-
-.c.o:
-	@echo CC $*.c
-	@${CC} ${CFLAGS} -I../lib9 -I${PREFIX}/include -I../lib9 $*.c
-
-clean:
-	rm -f ${OFILES} ${TARG}
-
-${TARG}: ${OFILES}
-	@echo LD ${TARG}
-	${CC} ${LDFLAGS} -o ${TARG} ${OFILES} -lm -L../lib9 -L${PREFIX}/lib -l9
+include ../std.mk
diff -r 3314f6c2b58a std.mk
--- a/std.mk	Sun May 08 08:26:38 2011 +0000
+++ b/std.mk	Sun May 22 00:52:01 2011 +0200
@@ -10,7 +10,7 @@
 	@echo built ${TARG}
 
 install: install-default post-install
-       
+
 install-default: ${TARG}
 	@mkdir -p ${DESTDIR}${PREFIX}/bin
 	@cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/

Reply via email to