[hackers] [9base] applied nsz's makefile cleanup, thanks Szabolcs! || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Sun, 22 May 2011 09:11:52 +0200 (CEST)

changeset: 90:d873e9c785b7
tag: tip
user: Anselm R Garbe <anselm_AT_garbe.us>
date: Sun May 22 07:11:50 2011 +0000
files: diff/Makefile std.mk
description:
applied nsz's makefile cleanup, thanks Szabolcs!

diff -r 3314f6c2b58a -r d873e9c785b7 diff/Makefile
--- a/diff/Makefile Sun May 08 08:26:38 2011 +0000
+++ b/diff/Makefile Sun May 22 07:11:50 2011 +0000
@@ -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 -r d873e9c785b7 std.mk
--- a/std.mk Sun May 08 08:26:38 2011 +0000
+++ b/std.mk Sun May 22 07:11:50 2011 +0000
@@ -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/
Received on Sun May 22 2011 - 09:11:52 CEST

This archive was generated by hypermail 2.2.0 : Sun May 22 2011 - 09:12:05 CEST