# HG changeset patch # User Mike Becker # Date 1731243963 -3600 # Node ID b3d26733414081b90ff8161cb1e44905ae215182 # Parent ee81f5f84a3861b33a2e47f3a2ac26150b4213e8 improve the dist Makefile target diff -r ee81f5f84a38 -r b3d267334140 .hgignore --- a/.hgignore Sun Nov 10 13:54:55 2024 +0100 +++ b/.hgignore Sun Nov 10 14:06:03 2024 +0100 @@ -1,5 +1,6 @@ syntax: regexp ^.idea/ +^dist/ ^build/ \.orig\..*$ \.orig$ diff -r ee81f5f84a38 -r b3d267334140 Makefile --- a/Makefile Sun Nov 10 13:54:55 2024 +0100 +++ b/Makefile Sun Nov 10 14:06:03 2024 +0100 @@ -29,13 +29,13 @@ install: @cd src && $(MAKE) -s install -dist: - @mkdir -p build/cline +dist: FORCE + @mkdir -p dist/cline @cp -R README LICENSE Makefile configure \ - make src test build/cline/ - @cd build; tar -czf cline-$(VERSION).tar.gz -Hustar cline - @rm -f -R build/cline - @echo "Dist file created: build/cline-$(VERSION).tar.gz" + make src test dist/cline/ + @cd dist; tar -czf cline-$(VERSION).tar.gz -Hustar cline + @rm -f -R dist/cline + @echo "Dist file created: dist/cline-$(VERSION).tar.gz" build: @mkdir -p build