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