Use a makefile and .gitignore
This commit is contained in:
parent
64141ebcc6
commit
6e33bf40e3
2
geral/.gitignore
vendored
Normal file
2
geral/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.pdf
|
||||
*.png
|
14
geral/Makefile
Normal file
14
geral/Makefile
Normal 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 |
Loading…
Reference in New Issue
Block a user