Previously the bup target might fail if it was run in parallel
(i.e. during make -j). Since bup depends on _version.py, which is
phony, that wasn't unlikely.
Fix the race by ignoring errors while creating the symlink, and then
testing for existence afterward.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/configure-sampledata --setup
bup: lib/bup/_version.py lib/bup/_helpers$(SOEXT) cmds main.py
- ln -sf main.py bup
+ -ln -s main.py bup
+ test -L bup
Documentation/all: bup