X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/blobdiff_plain/a2916c0635fec5b45ad742904db9f5769b48f53d..dc190ae1b06450d72f32c14e9a4f2d8114a01af0:/Makefile diff --git a/Makefile b/Makefile index 9cedd7f..a19c846 100644 --- a/Makefile +++ b/Makefile @@ -79,16 +79,16 @@ CLEANFILES = *.pyc TARGETS += auto.py auto-$(VERSION).py -auto-$(VERSION).py: Makefile get-version $(SOURCES) +auto-$(VERSION).py: Makefile get-version $(SOURCES) $(wildcard RELEASE) { echo "### -*-python-*-"; \ echo "PACKAGE = '$(PACKAGE)'"; \ echo "VERSION = '$(VERSION)'"; \ echo "HOME = '$$(pwd)'"; \ } >$@.new mv $@.new $@ - rm -f auto.py.new && ln -s $@ auto.py.new && mv auto.py.new auto.py auto.py: auto-$(VERSION).py + rm -f auto.py.new && ln -s $^ auto.py.new && mv auto.py.new auto.py for i in auto-*.py; do \ case $$i in auto-$(VERSION).py) ;; *) rm -f $$i ;; esac; \ done