summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bainton <dpb@driftaway.org>2014-05-08 14:13:35 +0300
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-05-08 11:19:53 +0000
commit2ebf11638c0b03ee6ac3260b9c961417545b97e4 (patch)
tree0e474f99f9eb4e77ffc873926b96e821fa359d2f
parentd5240b5d8430c0e29d71ccb53badd74853f48beb (diff)
Simplify the mkfile
-rw-r--r--mkfile29
1 files changed, 7 insertions, 22 deletions
diff --git a/mkfile b/mkfile
index ecc7ac9..7f3901b 100644
--- a/mkfile
+++ b/mkfile
@@ -4,6 +4,7 @@ bins=sfeed sfeed_html sfeed_frames sfeed_plain sfeed_stats sfeed_web \
sfeed_xmlenc sfeed_opml_import
build:Q: $bins
+
clean:Q:
rm -f *.o
@@ -13,29 +14,13 @@ clean:Q:
install: build
echo "TODO"
-sfeed:Q: sfeed.o xml.o util.o
- cc $prereq -o $target
-
-sfeed_html:Q: sfeed_html.o util.o
- cc $prereq -o $target
-
-sfeed_plain:Q: sfeed_plain.o util.o
- cc $prereq -o $target
-
-sfeed_frames:Q: sfeed_frames.o util.o
- cc $prereq -o $target
-
-sfeed_opml_import:Q: sfeed_opml_import.o util.o xml.o
- cc $prereq -o $target
-
-sfeed_stats:Q: sfeed_stats.o util.o
- cc $prereq -o $target
-
-sfeed_web:Q: sfeed_web.o util.o xml.o
- cc $prereq -o $target
+sfeed: xml.o
+sfeed_opml_import: xml.o
+sfeed_web: xml.o
+sfeed_xmlenc: xml.o
-sfeed_xmlenc:Q: sfeed_xmlenc.o util.o xml.o
+&: &.o util.o
cc $prereq -o $target
-%.o: %.c
+&.o: &.c
cc $CFLAGS -c $stem.c