summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/europasscv/Makefile.europasscv
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/europasscv/Makefile.europasscv
Initial commit
Diffstat (limited to 'macros/latex/contrib/europasscv/Makefile.europasscv')
-rw-r--r--macros/latex/contrib/europasscv/Makefile.europasscv82
1 files changed, 82 insertions, 0 deletions
diff --git a/macros/latex/contrib/europasscv/Makefile.europasscv b/macros/latex/contrib/europasscv/Makefile.europasscv
new file mode 100644
index 0000000000..45e09a5354
--- /dev/null
+++ b/macros/latex/contrib/europasscv/Makefile.europasscv
@@ -0,0 +1,82 @@
+ICONS_SVG=$(wildcard *_europass_icon.svg)
+ICONS_PDF=$(ICONS_SVG:.svg=.pdf)
+
+INSTALL = install -m 644
+INSTALLDIR = install -d
+
+all: class documentation
+
+pictures: icons europasslogo2013.pdf
+
+europasslogo2013.pdf: europasslogo2013.svg
+ inkscape $< --export-area-drawing --export-pdf $@
+
+# convert from pdf to ps then back to pdf to avoid the pdftex warning "PDF
+# inclusion: multiple pdfs with page group included in a single page"
+icons: $(ICONS_SVG) $(ICONS_PDF)
+
+%_europass_icon.pdf.temp : %_europass_icon.svg
+ inkscape $< --export-area-page --export-pdf $@
+
+%_europass_icon.ps : %_europass_icon.pdf.temp
+ pdf2ps $< $@
+
+%_europass_icon.pdf : %_europass_icon.ps
+ ps2pdf $<
+
+documentation: class europasscv.pdf examples
+
+%.pdf: %.tex
+ latexmk -pdf $<
+
+examples: europasscv_en.pdf europasscv_bib_en.pdf
+
+class: pictures
+
+package: class documentation tds
+ $(INSTALLDIR) europasscv/example
+ $(INSTALL) *.svg europasscv
+ $(INSTALL) *_europass_icon.pdf europasscv
+ $(INSTALL) europasslogo2013.pdf europasscv
+ $(INSTALL) europasscv.cls europasscv
+ $(INSTALL) europasscv-bibliography.sty europasscv
+ $(INSTALL) europasscv*.def europasscv
+ $(INSTALL) europasscv.tex europasscv
+ $(INSTALL) europasscv.pdf europasscv
+ $(INSTALL) europasscv_*en.tex europasscv/example
+ $(INSTALL) europasscv_*en.pdf europasscv/example
+ $(INSTALL) europasscv_example.bib europasscv/example
+ $(INSTALL) ../README.md europasscv
+ $(INSTALL) ../CHANGELOG.md europasscv
+ $(INSTALL) Makefile europasscv/Makefile.europasscv
+ $(INSTALL) Makefile europasscv/Makefile.europasscv
+ tar -cvf europasscv.tar --owner=0 --group=0 europasscv europasscv.tds.zip
+ gzip -f europasscv.tar
+ rm -fr europasscv
+ rm -fr europasscv.tds.zip
+
+tds: class documentation
+ $(INSTALLDIR) tds/tex/latex/europasscv
+ $(INSTALL) *_europass_icon.pdf tds/tex/latex/europasscv
+ $(INSTALL) europasslogo2013.pdf tds/tex/latex/europasscv
+ $(INSTALL) europasscv.cls tds/tex/latex/europasscv
+ $(INSTALL) europasscv-bibliography.sty tds/tex/latex/europasscv
+ $(INSTALL) europasscv*.def tds/tex/latex/europasscv
+ $(INSTALLDIR) tds/doc/latex/europasscv/example
+ $(INSTALL) europasscv_*en.pdf tds/doc/latex/europasscv/example
+ $(INSTALL) europasscv_*en.tex tds/doc/latex/europasscv/example
+ $(INSTALL) europasscv_example.bib tds/doc/latex/europasscv/example
+ $(INSTALL) ../README.md tds/doc/latex/europasscv
+ $(INSTALL) ../CHANGELOG.md tds/doc/latex/europasscv
+ $(INSTALL) europasscv.pdf tds/doc/latex/europasscv
+ $(INSTALL) europasscv.tex tds/doc/latex/europasscv
+ cd tds && zip -r europasscv.tds.zip * && mv europasscv.tds.zip ..
+ rm -fr tds
+
+distclean:
+ rm -f *~ *.synctex.gz *.aux *.log *.out *.backup *.toc *.temp *.bbl *.bcf *.blg *.fls *.run.xml *.fdb_latexmk
+
+clean: distclean
+ rm -f *.pdf
+
+.PHONY: all clean distclean tds package class documentation examples pictures