Skip to content
Snippets Groups Projects
Verified Commit f5be6e9c authored by ck85nori's avatar ck85nori :railway_track:
Browse files

adds title variable to makefile

parent 325c6122
Branches
No related tags found
No related merge requests found
...@@ -20,9 +20,9 @@ deploy: ...@@ -20,9 +20,9 @@ deploy:
- >- - >-
curl curl
-u "$NEXTCLOUD_SHARE:$NEXTCLOUD_PW" -u "$NEXTCLOUD_SHARE:$NEXTCLOUD_PW"
-T document.pdf -T title.pdf
-H 'X-Requested-With: XMLHttpRequest' -H 'X-Requested-With: XMLHttpRequest'
-H 'X-Method-Override: PUT' -H 'X-Method-Override: PUT'
https://portal.idiv.de/nextcloud/public.php/webdav/document.pdf https://portal.idiv.de/nextcloud/public.php/webdav/title.pdf
environment: environment:
name: production name: production
TITLE = title
PANDOC = pandoc PANDOC = pandoc
PANDOCFLAGS = \ PANDOCFLAGS = \
...@@ -9,7 +11,7 @@ SOURCES_MD = $(sort $(wildcard chapter-*.md)) ...@@ -9,7 +11,7 @@ SOURCES_MD = $(sort $(wildcard chapter-*.md))
default: all default: all
all: document.pdf all: $(TITLE).pdf
SUBDIRS = \ SUBDIRS = \
img \ img \
...@@ -19,8 +21,8 @@ $(SUBDIRS): ...@@ -19,8 +21,8 @@ $(SUBDIRS):
subdirs: $(SUBDIRS) subdirs: $(SUBDIRS)
document.pdf: $(SUBDIRS) metadata.yml $(SOURCES_CSV) $(SOURCES_MD) $(TITLE).pdf: $(SUBDIRS) metadata.yml $(SOURCES_CSV) $(SOURCES_MD)
$(PANDOC) $(PANDOCFLAGS) -o document.pdf metadata.yml $(SOURCES_MD) $(PANDOC) $(PANDOCFLAGS) -o $@ metadata.yml $(SOURCES_MD)
check: spellcheck check: spellcheck
...@@ -31,7 +33,7 @@ clean: ...@@ -31,7 +33,7 @@ clean:
@for dir in $(SUBDIRS); do \ @for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $@; \ $(MAKE) -C $$dir $@; \
done done
rm -f document.pdf rm -f $(TITLE).pdf
.PHONY: \ .PHONY: \
all \ all \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment