applied nsz's makefile cleanup, thanks Szabolcs! - 9base - revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log
Files
Refs
README
LICENSE
---
commit 7e8dfaf921d135e0c8b2cea4d231c3a509059f7d
parent 443de6b2ff7295c63811275a5e97659a11a5d5c0
Author: Anselm R Garbe 
Date:   Sun, 22 May 2011 07:11:50 +0000

applied nsz's makefile cleanup, thanks Szabolcs!
Diffstat:
  M diff/Makefile                       |      31 ++-----------------------------
  M std.mk                              |       2 +-

2 files changed, 3 insertions(+), 30 deletions(-)
---
diff --git a/diff/Makefile b/diff/Makefile
@@ -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 --git a/std.mk b/std.mk
@@ -10,7 +10,7 @@ all: ${TARG}
         @echo built ${TARG}
 
 install: install-default post-install
-       
+
 install-default: ${TARG}
         @mkdir -p ${DESTDIR}${PREFIX}/bin
         @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/