Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
447 B
1
Indexable
Never


watermarked_images/%.jpg: data/%.jpg
	@mkdir -p watermarked_images
	convert $< data/watermark.png -gravity southeast -composite $@

# Generate PDFs from watermarked images
pdfs/%.pdf: watermarked_images/%.jpg
	convert $< $@

# pdfs: 
# 	@mkdir -p pdfs
# # Join PDFs to create final presentation
output.pdf: pdfs/%.pdf
	@mkdir -p pdfs
	pdfunite $< $@

all: output.pdf
	
# Clean generated files
clean:
	rm -rf watermarked_images pdfs FINAL_PDF.pdf