From 36bcba75bdc4d74d33f99c11b417bc2c5b74cbef Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 14 Oct 2019 11:37:41 +0100 Subject: [PATCH] pysetup.mk: Add an explicit `gen' target, and make `all' depend on it. I plan to add support for multiple `python' versions building in parallel in the same working tree. But generated files are shared between `python' versions, and there will be a mess if things happen in the wrong order. --- pysetup.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pysetup.mk b/pysetup.mk index 0e7a218..09dd7b0 100644 --- a/pysetup.mk +++ b/pysetup.mk @@ -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 -- 2.11.0