improve the dist Makefile target default tip

Sun, 10 Nov 2024 14:06:03 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 10 Nov 2024 14:06:03 +0100
changeset 78
b3d267334140
parent 77
ee81f5f84a38

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

mercurial