Fix Makefile dist target.

This commit is contained in:
Rémi Verschelde 2017-06-04 10:33:20 +02:00
parent beb80ff521
commit aa2643383f
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ compile
database.h database.h
database.c database.c
advent.6 advent.6
*.tar.gz

View file

@ -9,8 +9,8 @@ ifeq ($(UNAME_S),Linux)
endif endif
OBJS=main.o init.o actions1.o actions2.o score.o misc.o database.o 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 DOCS=COPYING NEWS README.adoc TODO advent.adoc history.adoc index.adoc hints.adoc
SOURCES=$(OBJS:.o=.c) advent.h funcs.h adventure.text $(DOCS) control SOURCES=$(OBJS:.o=.c) compile.c advent.h database.h funcs.h adventure.text $(DOCS) Makefile control
.c.o: .c.o:
$(CC) $(CCFLAGS) $(DBX) -c $< $(CC) $(CCFLAGS) $(DBX) -c $<
@ -58,7 +58,7 @@ check: advent
.adoc.html: advent.adoc .adoc.html: advent.adoc
asciidoc $< 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 tar --transform='s:^:advent-$(VERS)/:' --show-transformed-names -cvzf advent-$(VERS).tar.gz $(SOURCES) advent.6
dist: advent-$(VERS).tar.gz dist: advent-$(VERS).tar.gz