From: RĂ©mi Verschelde Date: Sun, 4 Jun 2017 08:33:20 +0000 (+0200) Subject: Fix Makefile dist target. X-Git-Tag: 0.90~9 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=beb762735dec5e078b9015d81c7833e8db4b9daa Fix Makefile dist target. --- diff --git a/.gitignore b/.gitignore index e053fe6..2ea48c5 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ compile database.h database.c advent.6 +*.tar.gz diff --git a/Makefile b/Makefile index ba2c9ef..39714a0 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ ifeq ($(UNAME_S),Linux) endif OBJS=main.o init.o actions1.o actions2.o score.o misc.o database.o -DOCS=COPYING NEWS README TODO advent.adoc history.adoc index.adoc hints.adoc -SOURCES=$(OBJS:.o=.c) advent.h funcs.h adventure.text $(DOCS) control +DOCS=COPYING NEWS README.adoc TODO advent.adoc history.adoc index.adoc hints.adoc +SOURCES=$(OBJS:.o=.c) compile.c advent.h database.h funcs.h adventure.text $(DOCS) Makefile control .c.o: $(CC) $(CCFLAGS) $(DBX) -c $< @@ -58,7 +58,7 @@ check: advent .adoc.html: advent.adoc asciidoc $< -advent-$(VERS).tar.gz: $(SOURCES) advent.6 +advent-$(VERS).tar.gz: $(SOURCES) .adoc.6 tar --transform='s:^:advent-$(VERS)/:' --show-transformed-names -cvzf advent-$(VERS).tar.gz $(SOURCES) advent.6 dist: advent-$(VERS).tar.gz