From e411972b53366bc5462c801318f51f156f6fbb13 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Sun, 21 Jul 2019 21:38:23 +0200 Subject: [PATCH] FIX: fixed path management --- Makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 1b44088..c1aa396 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ # DEPDIR := .d $(shell mkdir -p $(DEPDIR) >/dev/null) - +GITDIR = $(shell git rev-parse --show-toplevel) export $TEXINPUTS DEPFLAGS = -M -MP -MF $(DEPDIR)/$*.d @@ -51,14 +51,14 @@ IEEEtran.cls: @unzip -j ieee-latex-conference-template.zip IEEEtran/IEEEtran.cls >/dev/null @rm ieee-latex-conference-template.zip -base: .gitignore .latexmkrc .git/hooks/post-commit +base: .gitignore .latexmkrc ${GITDIR}/.git/hooks/post-commit -.git/hooks/post-commit .git/hooks/post-merge .git/hooks/post-checkout: Paper-Makefile/post-commit - cp Paper-Makefile/post-commit .git/hooks/ - cp Paper-Makefile/post-commit .git/hooks/post-merge - cp Paper-Makefile/post-commit .git/hooks/post-checkout - chmod u+x .git/hooks/* - .git/hooks/post-commit +${GITDIR}/.git/hooks/post-commit ${GITDIR}.git/hooks/post-merge ${GITDIR}.git/hooks/post-checkout: ${MakefileBase}/post-commit + cp ${MakefileBase}/post-commit ${GITDIR}.git/hooks/ + cp ${MakefileBase}/post-commit ${GITDIR}.git/hooks/post-merge + cp ${MakefileBase}/post-commit ${GITDIR}.git/hooks/post-checkout + chmod u+x ${GITDIR}/.git/hooks/* + ${GITDIR}/.git/hooks/post-commit .gitignore: @echo *.pdf >> .gitignore @@ -78,10 +78,10 @@ base: .gitignore .latexmkrc .git/hooks/post-commit @echo .d >> .gitignore .latexmkrc: - @cp Paper-Makefile/.latexmkrc . >> $@ + @cp ${MakefileBase}/.latexmkrc . >> $@ watermark.tex: - cp Paper-Makefile/watermark.tex $@ + cp ${MakefileBase}/watermark.tex $@ watermark: all watermark.tex sed -i 's//$(EMAIL)/g' watermark.tex