Add Makefiles
This commit is contained in:
parent
0505994673
commit
7760f2feba
2 changed files with 32 additions and 0 deletions
16
analyse/Makefile
Normal file
16
analyse/Makefile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
filename=$(shell basename $(shell pwd))
|
||||||
|
timestamp=$(shell date +%Y-%m-%d_%H:%M)
|
||||||
|
|
||||||
|
all: snapshot
|
||||||
|
|
||||||
|
snapshot: main.tex
|
||||||
|
@latexmk -pdf main.tex >/dev/null 2>&1
|
||||||
|
@if ! cmp --silent build/main.pdf ${filename}_*.pdf; then \
|
||||||
|
touch ${filename}_tmp.pdf; \
|
||||||
|
rm ${filename}*.pdf; \
|
||||||
|
cp build/main.pdf ${filename}_${timestamp}.pdf; \
|
||||||
|
echo "Updated"; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@rm -rf build 2>/dev/null
|
16
logique-programmable/Makefile
Normal file
16
logique-programmable/Makefile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
filename=$(shell basename $(shell pwd))
|
||||||
|
timestamp=$(shell date +%Y-%m-%d_%H:%M)
|
||||||
|
|
||||||
|
all: snapshot
|
||||||
|
|
||||||
|
snapshot: main.tex
|
||||||
|
@latexmk -pdf main.tex >/dev/null 2>&1
|
||||||
|
@if ! cmp --silent build/main.pdf ${filename}_*.pdf; then \
|
||||||
|
touch ${filename}_tmp.pdf; \
|
||||||
|
rm ${filename}*.pdf; \
|
||||||
|
cp build/main.pdf ${filename}_${timestamp}.pdf; \
|
||||||
|
echo "Updated"; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@rm -rf build 2>/dev/null
|
Loading…
Reference in a new issue