Use a makefile and .gitignore

This commit is contained in:
Rui Miguel Silva Seabra 2018-12-07 23:44:55 +00:00
parent 64141ebcc6
commit 6e33bf40e3
3 changed files with 16 additions and 0 deletions

2
geral/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.pdf
*.png

14
geral/Makefile Normal file
View File

@ -0,0 +1,14 @@
SOURCES = $(wildcard *.svg)
PDFs = $(SOURCES:.svg=.pdf)
PNGs = $(SOURCES:.svg=.png)
run: $(PDFs) $(PNGs)
%.png: %.svg
inkscape -d 300 $< -e $@
%.pdf: %.svg
inkscape -d 300 $< -A $@.tmp && gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite -sColorConversionStrategy=CMYK -dProcessColorModel=/DeviceCMYK -sOutputFile=$@ $@.tmp && rm -f $@.tmp
clean:
rm -f *.pdf *.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB