Simplification.

This commit is contained in:
Eric S. Raymond 2017-06-04 18:54:33 -04:00
parent fadb722c59
commit 2f9d798574

View file

@ -65,8 +65,8 @@ DOCS=COPYING NEWS README.adoc TODO \
advent.adoc history.adoc index.adoc hints.adoc advent.6 advent.adoc history.adoc index.adoc hints.adoc advent.6
# Can't use GNU tar's --transform, needs to build under Alpine Linux # Can't use GNU tar's --transform, needs to build under Alpine Linux
advent-$(VERS).tar.gz: $(SOURCES) $(DOCS) advent.6 advent-$(VERS).tar.gz: $(SOURCES) $(DOCS)
@ls $(SOURCES) $(DOCS) advent.6 | sed s:^:advent-$(VERS)/: >MANIFEST @ls $(SOURCES) $(DOCS) | sed s:^:advent-$(VERS)/: >MANIFEST
@(cd ..; ln -s advent advent-$(VERS)) @(cd ..; ln -s advent advent-$(VERS))
(cd ..; tar -czvf advent/advent-$(VERS).tar.gz `cat advent/MANIFEST`) (cd ..; tar -czvf advent/advent-$(VERS).tar.gz `cat advent/MANIFEST`)
@(cd ..; rm advent-$(VERS)) @(cd ..; rm advent-$(VERS))