openpgp: 7E25094870599135A83DD2C6C446E92ECE0D66B2
[www.jankratochvil.net.git] / resume / Makefile.am
1 # $Id$
2 # automake source for the Makefile of Resume subdir
3 # Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 include $(top_srcdir)/Makefile-head.am
20
21 MODPERL_PM+= \
22                 ResumeJanKratochvil.pm \
23                 Index.pm \
24                 resumejankratochvil.pm
25
26 EXTRA_DIST+= \
27                 ResumeJanKratochvil.tex \
28                 ResumeJanKratochvil.pdf
29 #               ResumeJanKratochvil-face.png
30
31 DOWNSCALE=100
32
33 %.pdf: %.png
34         pngtopnm <$<|pnmtops -nocenter \
35                                         -imagewidth  $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$2/$(DOWNSCALE)}') \
36                                         -imageheight $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$3/$(DOWNSCALE)}') \
37                                              -width  $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$2/$(DOWNSCALE)}') \
38                                              -height $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$3/$(DOWNSCALE)}') \
39                         |ps2pdf13 - >$@
40
41 ResumeJanKratochvil.pdf: ResumeJanKratochvil.tex #ResumeJanKratochvil-face.pdf
42         pdflatex $< resume.tex
43
44 CLEANFILES+= \
45                 *.aux \
46                 *.log \
47                 *.out \
48                 ResumeJanKratochvil-face.pdf
49