summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-05-08 11:51:54 +0000
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-05-08 11:51:54 +0000
commitc989512ab9d3c9f1225a9d54d6284bd2a0b28620 (patch)
tree6588bc9b9982f21c3418c8bd1bfd8ff81f8823d7
parent2ebf11638c0b03ee6ac3260b9c961417545b97e4 (diff)
mkfile: improve some more
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
-rw-r--r--mkfile19
1 files changed, 8 insertions, 11 deletions
diff --git a/mkfile b/mkfile
index 7f3901b..6ffd467 100644
--- a/mkfile
+++ b/mkfile
@@ -1,18 +1,15 @@
+CC = cc
+
<config.mk
-bins=sfeed sfeed_html sfeed_frames sfeed_plain sfeed_stats sfeed_web \
+TARG = sfeed sfeed_html sfeed_frames sfeed_plain sfeed_stats sfeed_web \
sfeed_xmlenc sfeed_opml_import
-build:Q: $bins
+all: $TARG
-clean:Q:
- rm -f *.o
- rm -f core a.out
- rm -f $bins
-
-install: build
- echo "TODO"
+clean:
+ rm -f *.o core a.out $TARG
sfeed: xml.o
sfeed_opml_import: xml.o
@@ -20,7 +17,7 @@ sfeed_web: xml.o
sfeed_xmlenc: xml.o
&: &.o util.o
- cc $prereq -o $target
+ $CC $prereq -o $target
&.o: &.c
- cc $CFLAGS -c $stem.c
+ $CC $CFLAGS -c $stem.c