Update the pipeline to produce a tarball of the source upon every commit.
[open-adventure.git] / Makefile
index 2cc167f1709af788c790108038a950a802961eb5..4685fa4c54ecdd46e0c35355271c1efe8629b798 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -67,9 +67,9 @@ DOCS=COPYING NEWS README.adoc TODO \
 # Can't use GNU tar's --transform, needs to build under Alpine Linux
 advent-$(VERS).tar.gz: $(SOURCES) $(DOCS)
        @ls $(SOURCES) $(DOCS) | sed s:^:advent-$(VERS)/: >MANIFEST
-       @(cd ..; ln -s advent advent-$(VERS))
-       (cd ..; tar -czvf advent/advent-$(VERS).tar.gz `cat advent/MANIFEST`)
-       @(cd ..; rm advent-$(VERS))
+       @(ln -s . advent-$(VERS))
+       (tar -T MANIFEST -czvf advent-$(VERS).tar.gz)
+       @(rm advent-$(VERS))
 
 dist: advent-$(VERS).tar.gz