Sanity check chroot environment.
[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
25 EXTRA_DIST+= \
26                 ResumeJanKratochvil.tex \
27                 ResumeJanKratochvil.pdf
28 #               ResumeJanKratochvil-face.png
29
30 DOWNSCALE=100
31
32 %.pdf: %.png
33         pngtopnm <$<|pnmtops -nocenter \
34                                         -imagewidth  $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$2/$(DOWNSCALE)}') \
35                                         -imageheight $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$3/$(DOWNSCALE)}') \
36                                              -width  $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$2/$(DOWNSCALE)}') \
37                                              -height $$(echo $$(pngtopnm <$< |head -n2)|awk '{print $$3/$(DOWNSCALE)}') \
38                         |ps2pdf13 - >$@
39
40 ResumeJanKratochvil.pdf: ResumeJanKratochvil.tex #ResumeJanKratochvil-face.pdf
41         pdflatex $< resume.tex
42
43 CLEANFILES+= \
44                 *.aux \
45                 *.log \
46                 *.out \
47                 ResumeJanKratochvil-face.pdf
48