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