contracts
This commit is contained in:
parent
3130c19709
commit
efd179e4e6
2 changed files with 37 additions and 0 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
CONTRACTS = contrats
|
||||||
|
TEMPLATE = modeles
|
||||||
|
|
||||||
|
CP = cp -r
|
||||||
|
|
||||||
|
all: build
|
||||||
|
|
||||||
|
new_employee:
|
||||||
|
@echo Nom employé ?
|
||||||
|
@read line; echo $$line | xargs -i $(CP) '$(TEMPLATE)/employe.tex' '$(CONTRACTS)/Employee-{}.tex'
|
||||||
|
|
||||||
|
new_layoff:
|
||||||
|
@echo Nom employé ?
|
||||||
|
@read line; echo $$line | xargs -i $(CP) '$(TEMPLATE)/licenciement.tex' '$(CONTRACTS)/Layoff-{}.tex'
|
||||||
|
|
||||||
|
new_company:
|
||||||
|
@echo Nom entreprise ?
|
||||||
|
@read line; echo $$line | xargs -i $(CP) '$(TEMPLATE)/entreprise.tex' '$(CONTRACTS)/Company-{}.tex'
|
19
contrats/Makefile
Normal file
19
contrats/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
TEXS = $(wildcard *.tex)
|
||||||
|
NAMES = $(patsubst %.tex,%,$(TEXS))
|
||||||
|
|
||||||
|
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
|
||||||
|
QPDF = qpdf --linearize --replace-input
|
||||||
|
RM = rm -rf
|
||||||
|
|
||||||
|
all: build
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(foreach i,$(TEXS),$(TEXMK) "$(i)";)
|
||||||
|
@$(foreach i,$(NAMES),$(QPDF) "$(i).pdf" 2>/dev/null |:;)
|
||||||
|
|
||||||
|
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc vrb
|
||||||
|
clean:
|
||||||
|
$(RM) $(foreach f,$(NAMES),$(foreach ext,$(EXTS),$(f).$(ext)))
|
||||||
|
|
||||||
|
full-clean: clean
|
||||||
|
$(RM) $(foreach f,$(NAMES),$(f).pdf)
|
Loading…
Reference in a new issue