fix dist files not being in subdir v1.4.1

Fri, 29 Sep 2023 20:30:22 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 29 Sep 2023 20:30:22 +0200
changeset 71
a2ea57a16348
parent 70
8de477fe19eb
child 72
f99a6d5b268b

fix dist files not being in subdir

Makefile file | annotate | diff | comparison | revisions
--- a/Makefile	Fri Sep 29 20:07:48 2023 +0200
+++ b/Makefile	Fri Sep 29 20:30:22 2023 +0200
@@ -30,8 +30,12 @@
 	@cd src && $(MAKE) -s install
 
 dist:
-	tar -czf cline-$(VERSION).tar.gz -Hustar \
-		README LICENSE Makefile configure make src test
+	@mkdir -p build/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"
 
 build:
 	@mkdir -p build

mercurial