commit 55597f406bb21be8264ac88a7dec4e96994a5507
Author: Laslo Hunhold <[email protected]>
AuthorDate: Sat Dec 25 22:35:47 2021 +0100
Commit: Laslo Hunhold <[email protected]>
CommitDate: Sat Dec 25 22:35:47 2021 +0100
Quote constructed string in make dist
You never know what people might do with the VERSION-variable, which
after all is written in config.mk
Signed-off-by: Laslo Hunhold <[email protected]>
diff --git a/Makefile b/Makefile
index 9c001e3..d293078 100644
--- a/Makefile
+++ b/Makefile
@@ -126,16 +126,16 @@ print:
@echo $(PREFIX)
dist:
- mkdir libgrapheme-$(VERSION)
- for m in benchmark data gen man src test; do mkdir
libgrapheme-$(VERSION)/$$m; done
- cp config.mk grapheme.h LICENSE Makefile README libgrapheme-$(VERSION)
- cp $(BENCHMARK:=.c) benchmark/util.c benchmark/util.h
libgrapheme-$(VERSION)/benchmark
- cp $(DATA) libgrapheme-$(VERSION)/data
- cp $(GEN:=.c) gen/util.c gen/types.h gen/util.h
libgrapheme-$(VERSION)/gen
- cp $(MAN3) $(MAN7) libgrapheme-$(VERSION)/man
- cp $(SRC:=.c) src/util.h libgrapheme-$(VERSION)/src
- cp $(TEST:=.c) test/util.c test/util.h libgrapheme-$(VERSION)/test
- tar -cf - libgrapheme-$(VERSION) | gzip -c >
libgrapheme-$(VERSION).tar.gz
- rm -rf libgrapheme-$(VERSION)
+ mkdir "libgrapheme-$(VERSION)"
+ for m in benchmark data gen man src test; do mkdir
"libgrapheme-$(VERSION)/$$m"; done
+ cp config.mk grapheme.h LICENSE Makefile README "libgrapheme-$(VERSION)"
+ cp $(BENCHMARK:=.c) benchmark/util.c benchmark/util.h
"libgrapheme-$(VERSION)/benchmark"
+ cp $(DATA) "libgrapheme-$(VERSION)/data"
+ cp $(GEN:=.c) gen/util.c gen/types.h gen/util.h
"libgrapheme-$(VERSION)/gen"
+ cp $(MAN3) $(MAN7) "libgrapheme-$(VERSION)/man"
+ cp $(SRC:=.c) src/util.h "libgrapheme-$(VERSION)/src"
+ cp $(TEST:=.c) test/util.c test/util.h "libgrapheme-$(VERSION)/test"
+ tar -cf - "libgrapheme-$(VERSION)" | gzip -c >
"libgrapheme-$(VERSION).tar.gz"
+ rm -rf "libgrapheme-$(VERSION)"
.PHONY: all test install uninstall clean clean-data dist