Sun, 10 Nov 2024 14:06:03 +0100
improve the dist Makefile target
.hgignore | file | annotate | diff | comparison | revisions | |
Makefile | file | annotate | diff | comparison | revisions |
--- 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$
--- 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