chiark / gitweb /
pysetup.mk: Add an explicit `gen' target, and make `all' depend on it.
[cfd] / pysetup.mk
index 0e7a2187fa8a84a3a44d8e0789d6fa80aaf313ba..09dd7b0702247bbb837ee67b6f7217c1b995c929 100644 (file)
@@ -15,8 +15,12 @@ distdir                      := $(shell $(PYTHON) setup.py -q distdir)
 ###--------------------------------------------------------------------------
 ### Useful targets implemented by the `setup.py' program.
 
+PYTARGETS              += gen
+CMD-gen                        ?= build_gen
+
 PYTARGETS              += all
 CMD-all                        ?= build
+all:: gen
 
 PYTARGETS              += clean
 OPTS-clean             ?= --all