5 ## PCB, interactive printed circuit board design
6 ## Copyright (C) 1994,1995,1996 Thomas Nau
8 ## This program is free software; you can redistribute it and/or modify
9 ## it under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation; either version 2 of the License, or
11 ## (at your option) any later version.
13 ## This program is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ## GNU General Public License for more details.
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program; if not, write to the Free Software
20 ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 ## Contact addresses for paper mail and Email:
23 ## Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
24 ## Thomas.Nau@rz.uni-ulm.de
27 ## not until it is fully fixed up in terms of building
30 info_TEXINFOS= pcb.texi
32 # We avoid adding all the dependencies when building from a tarball.
33 # This allows end users to use pre-built documentation instead of
34 # requiring recent versions of makeinfo and other tools used only
35 # to build the documentation. Users who obtain the cutting edge sources
36 # via GIT are considered to be doing "development" and incur a slightly
37 # higher list of required tools.
39 pcb_TEXINFOS= ${inline_texi} ${pcb_output} ${tab_texi} ${images_output}
44 dist_html_DATA= ${html_docs} ${pcb_output_inst} ${images_output_inst}
45 dist_pdf_DATA= ${pdf_docs}
49 html_docs= ${info_TEXINFOS:.texi=.html}
50 pdf_docs= ${info_TEXINFOS:.texi=.pdf} refcard.pdf
54 # put the html manual into 1 file instead of multiple files?
55 AM_MAKEINFOHTMLFLAGS= --css-include=$(srcdir)/pcb.css --no-split
57 # use this to avoid having the clean target delete pcb.{dvi,html,pdf,ps}
58 # which unfortunately deletes files which are part of the distfile
60 -rm -rf pcb.aux pcb.cp pcb.cps pcb.fn pcb.fns pcb.ky pcb.kys pcb.log pcb.pg \
61 pcb.pgs pcb.tmp pcb.toc pcb.tp pcb.tps pcb.vr pcb.vrs
71 ${pcb_output_noinst} \
77 BUILT_SOURCES= ${tab_texi} ${pcb_output} ${inline_texi}
79 refcard.aux refcard.log refcard.pdf \
80 ${pcb_output} ${tab_texi} ${inline_texi} pcb.html pcb.pdf \
91 ASCII2TEXI= ${AWK} -f $(srcdir)/ascii2texi.awk ncol=3
99 tab_texi= ${tab_files:.tab=.texi}
109 ${pcb_files:.pcb=.pdf}
112 ${pcb_files:.pcb=.png}
114 pcb_output= ${pcb_output_inst} ${pcb_output_noinst}
118 gcode_control_img.eps \
121 images_output_noinst= \
124 images_output_inst= \
127 images_output= ${images_output_noinst} ${images_output_inst}
129 ${inline_texi} : extracted-docs
131 # no need to build these when building via a tarball. They're not used then
133 .PHONY : extracted-docs
135 if GIT_OR_CVS_VERSION
136 ${PERL} $(srcdir)/extract-docs $(srcdir)
138 @echo "Skipping documentation extraction since you are not building from GIT sources"
141 SUFFIXES = .eps .pcb .pdf .png .tab .tex
144 ${PCB} -x eps --only-visible --font-path $(top_srcdir)/src --eps-file $@ $<
147 ${PCB} -x png --only-visible --font-path $(top_srcdir)/src --outfile $@ $<
151 @echo "****************************************************"
152 @echo "WARNING: ps2pdf is missing on your system but"
153 @echo "$@ is out of date and needs to rebuilt."
154 @echo "Changes to $< will be ignored"
156 ${PS2PDF} `${AWK} 'BEGIN{s=8}; /BoundingBox/ {printf("-r%d -g%dx%d", s*72, s*$$4, s*$$5);}' $<` $< $@
160 ${ASCII2TEXI} $< > $@
164 @echo "****************************************************"
165 @echo "WARNING: pdflatex is missing on your system but"
166 @echo "$@ is out of date and needs to rebuilt."
167 @echo "Changes to $< will be ignored"
175 ${PERL} $(srcdir)/eps2png --png $< > $@