pysetup.mk: Add an explicit `gen' target, and make `all' depend on it.
[cfd] / pysetup.mk
index 0e7a218..09dd7b0 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