Finally merged the branch 'apache20'(+'apache2') back to the main trunk.
[www.jankratochvil.net.git] / resume / Makefile.am
index 037201d..c933ac6 100644 (file)
 
 
 include $(top_srcdir)/Makefile-head.am
+
+MODPERL_PM+= \
+               ResumeJanKratochvil.pm \
+               Index.pm
+
+EXTRA_DIST+= \
+               ResumeJanKratochvil.tex \
+               ResumeJanKratochvil.pdf
+#              ResumeJanKratochvil-face.png
+
+DOWNSCALE=100
+
+%.pdf: %.png
+       pngtopnm <$<|pnmtops -nocenter \
+                                       -imagewidth  $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$2/$(DOWNSCALE)}') \
+                                       -imageheight $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$3/$(DOWNSCALE)}') \
+                                            -width  $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$2/$(DOWNSCALE)}') \
+                                            -height $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$3/$(DOWNSCALE)}') \
+                       |ps2pdf13 - >$@
+
+ResumeJanKratochvil.pdf: ResumeJanKratochvil.tex #ResumeJanKratochvil-face.pdf
+       pdflatex $< resume.tex
+
+CLEANFILES+= \
+               *.aux \
+               *.log \
+               *.out \
+               ResumeJanKratochvil-face.pdf
+