]> arthur.barton.de Git - bup.git/commit
Only build _version.py once; remove phony targets
authorRob Browning <rlb@defaultvalue.org>
Sat, 21 Mar 2015 19:32:30 +0000 (14:32 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 28 Mar 2015 15:35:19 +0000 (10:35 -0500)
commit8ae556b8d341bb73d862f5af6a2b70e05fae3a4c
tree28d967813da8a9d7d9c4317be6c04d82aabe8dac
parent5515c60cbf4e6ce4097e3c97b124cace7ef3f2d0
Only build _version.py once; remove phony targets

Previously _version.py was a phony target because we couldn't easily
tell when the current git working tree version had changed.  This caused
various targets to be rebuilt multiple times (i.e. recursive make
invocations, etc.).

To fix that, just update _version.py once (at startup) if needed, via an
immediate variable assignment that calls a new ./configure-version
command, i.e.

  initial_setup := $(shell ./configure-version --update)

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
Makefile
configure-version [new file with mode: 0755]