oops.. only build it when it _is_ valid.
[AROS-Contrib.git] / arospdf / Makefile
blob4323665ee26476b90be7cb0b3e1aa3fa7412fc7b
1 #========================================================================
3 # Main xpdf Makefile.
5 # Copyright 1996-2003 Glyph & Cog, LLC
7 #========================================================================
9 SHELL = /bin/sh
11 DESTDIR =
13 prefix = /usr/local
14 exec_prefix = ${prefix}
15 srcdir = .
17 INSTALL = /Development/bin/install -c
18 INSTALL_PROGRAM = ${INSTALL}
19 INSTALL_DATA = ${INSTALL} -m 644
21 EXE =
23 all:
24 cd goo; $(MAKE)
25 cd fofi; $(MAKE)
26 cd splash; $(MAKE)
27 cd xpdf; $(MAKE) all-no-x
29 all-no-x:
30 cd goo; $(MAKE)
31 cd fofi; $(MAKE)
32 cd xpdf; $(MAKE) all-no-x
34 xpdf: dummy
35 cd goo; $(MAKE)
36 cd fofi; $(MAKE)
37 cd splash; $(MAKE)
38 cd xpdf; $(MAKE) xpdf$(EXE)
40 pdftops: dummy
41 cd goo; $(MAKE)
42 cd fofi; $(MAKE)
43 cd splash; $(MAKE)
44 cd xpdf; $(MAKE) pdftops$(EXE)
46 pdftotext: dummy
47 cd goo; $(MAKE)
48 cd fofi; $(MAKE)
49 cd splash; $(MAKE)
50 cd xpdf; $(MAKE) pdftotext$(EXE)
52 pdfinfo:
53 cd goo; $(MAKE)
54 cd fofi; $(MAKE)
55 cd splash; $(MAKE)
56 cd xpdf; $(MAKE) pdfinfo$(EXE)
58 pdffonts:
59 cd goo; $(MAKE)
60 cd fofi; $(MAKE)
61 cd splash; $(MAKE)
62 cd xpdf; $(MAKE) pdffonts$(EXE)
64 pdftoppm:
65 cd goo; $(MAKE)
66 cd fofi; $(MAKE)
67 cd splash; $(MAKE)
68 cd xpdf; $(MAKE) pdftoppm$(EXE)
70 pdfimages:
71 cd goo; $(MAKE)
72 cd fofi; $(MAKE)
73 cd splash; $(MAKE)
74 cd xpdf; $(MAKE) pdfimages$(EXE)
76 dummy:
78 install: dummy
79 -mkdir -p $(DESTDIR)${exec_prefix}/bin
80 # $(INSTALL_PROGRAM) xpdf/xpdf$(EXE) $(DESTDIR)${exec_prefix}/bin/xpdf$(EXE)
81 $(INSTALL_PROGRAM) xpdf/pdftops$(EXE) $(DESTDIR)${exec_prefix}/bin/pdftops$(EXE)
82 $(INSTALL_PROGRAM) xpdf/pdftotext$(EXE) $(DESTDIR)${exec_prefix}/bin/pdftotext$(EXE)
83 $(INSTALL_PROGRAM) xpdf/pdfinfo$(EXE) $(DESTDIR)${exec_prefix}/bin/pdfinfo$(EXE)
84 $(INSTALL_PROGRAM) xpdf/pdffonts$(EXE) $(DESTDIR)${exec_prefix}/bin/pdffonts$(EXE)
85 # $(INSTALL_PROGRAM) xpdf/pdftoppm$(EXE) $(DESTDIR)${exec_prefix}/bin/pdftoppm$(EXE)
86 $(INSTALL_PROGRAM) xpdf/pdfimages$(EXE) $(DESTDIR)${exec_prefix}/bin/pdfimages$(EXE)
87 -mkdir -p $(DESTDIR)${prefix}/man/man1
88 # $(INSTALL_DATA) $(srcdir)/doc/xpdf.1 $(DESTDIR)${prefix}/man/man1/xpdf.1
89 $(INSTALL_DATA) $(srcdir)/doc/pdftops.1 $(DESTDIR)${prefix}/man/man1/pdftops.1
90 $(INSTALL_DATA) $(srcdir)/doc/pdftotext.1 $(DESTDIR)${prefix}/man/man1/pdftotext.1
91 $(INSTALL_DATA) $(srcdir)/doc/pdfinfo.1 $(DESTDIR)${prefix}/man/man1/pdfinfo.1
92 $(INSTALL_DATA) $(srcdir)/doc/pdffonts.1 $(DESTDIR)${prefix}/man/man1/pdffonts.1
93 # $(INSTALL_DATA) $(srcdir)/doc/pdftoppm.1 $(DESTDIR)${prefix}/man/man1/pdftoppm.1
94 $(INSTALL_DATA) $(srcdir)/doc/pdfimages.1 $(DESTDIR)${prefix}/man/man1/pdfimages.1
95 -mkdir -p $(DESTDIR)${prefix}/man/man5
96 $(INSTALL_DATA) $(srcdir)/doc/xpdfrc.5 $(DESTDIR)${prefix}/man/man5/xpdfrc.5
97 -mkdir -p $(DESTDIR)${prefix}/etc
98 @if test ! -f $(DESTDIR)${prefix}/etc/xpdfrc; then \
99 echo "$(INSTALL_DATA) $(srcdir)/doc/sample-xpdfrc $(DESTDIR)${prefix}/etc/xpdfrc"; \
100 $(INSTALL_DATA) $(srcdir)/doc/sample-xpdfrc $(DESTDIR)${prefix}/etc/xpdfrc; \
101 else \
102 echo "# not overwriting the existing $(DESTDIR)${prefix}/etc/xpdfrc"; \
105 clean:
106 -cd goo; $(MAKE) clean
107 -cd fofi; $(MAKE) clean
108 -cd splash; $(MAKE) clean
109 -cd xpdf; $(MAKE) clean
111 distclean: clean
112 rm -f config.log config.status config.cache
113 rm -f aconf.h
114 rm -f Makefile goo/Makefile xpdf/Makefile
115 rm -f goo/Makefile.dep fofi/Makefile.dep splash/Makefile.dep xpdf/Makefile.dep
116 rm -f goo/Makefile.in.bak fofi/Makefile.in.bak splash/Makefile.in.bak xpdf/Makefile.in.bak
117 touch goo/Makefile.dep
118 touch fofi/Makefile.dep
119 touch splash/Makefile.dep
120 touch xpdf/Makefile.dep
122 depend:
123 cd goo; $(MAKE) depend
124 cd fofi; $(MAKE) depend
125 cd splash; $(MAKE) depend
126 cd xpdf; $(MAKE) depend