about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2011-02-06 06:36:45 +0000
committerEric Wong <normalperson@yhbt.net>2011-02-06 08:51:00 +0000
commitab9d3237f622e9db0be25f09bfb5c123318f3974 (patch)
tree4dd50e69c646421e6256d70a9777b9bd56402487
parentb5de76e22ba9f07ae7ea0c63a231f06b51c3f803 (diff)
downloadmall-ab9d3237f622e9db0be25f09bfb5c123318f3974.tar.gz
GNUmakefile: fix build from scratch
Oops :x
-rw-r--r--GNUmakefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 78b4aef..34bb00f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,9 +1,12 @@
 all::
 RSYNC_DEST := bogomips.org:/srv/bogomips/mall
-pkg_extra += ext/mall/mall.c
-ext/mall/mall.c: ext/mall/mall.c.erb
+mall_c := ext/mall/mall.c
+pkg_extra += $(mall_c)
+$(mall_c): $(mall_c).erb
         erb < $< > $@+
         mv $@+ $@
 rfproject := qrp
 rfpackage := mall
 include pkg.mk
+$(ext_pfx)/$(ext)/mall.c: $(mall_c)
+$(ext_pfx)/$(ext)/Makefile: $(ext_pfx)/$(ext)/mall.c