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}
121 ${pcb_files:.pcb=.pdf}
124 ${pcb_files:.pcb=.png}
126 pcb_output= ${pcb_output_inst} ${pcb_output_noinst}
128 pcb_paths= --lib-path ${top_srcdir}/lib \
129 --lib-newlib ${top_srcdir}/newlib:${top_srcdir}/lib/pcblib-newlib \
130 --element-path ${top_srcdir}/lib \
131 --font-path $(top_srcdir)/src \
132 --lib-command-dir ${top_srcdir}/lib
136 gcode_control_img.eps \
137 gcode_tool_path.eps \
140 images_output_noinst= \
143 images_output_inst= \
146 images_output= ${images_output_noinst} ${images_output_inst}
148 ${inline_texi} : extracted-docs
150 # no need to build these when building via a tarball. They're not used then
152 .PHONY : extracted-docs
154 if GIT_OR_CVS_VERSION
155 ${PERL} $(srcdir)/extract-docs $(srcdir)
157 @echo "Skipping documentation extraction since you are not building from GIT sources"
160 SUFFIXES = .eps .pcb .pdf .png .tab .tex
163 ${PCB} -x eps --only-visible ${pcb_paths} --eps-file $@ $<
166 ${PCB} -x png --only-visible ${pcb_paths} --outfile $@ $<
170 @echo "****************************************************"
171 @echo "WARNING: ps2pdf is missing on your system but"
172 @echo "$@ is out of date and needs to rebuilt."
173 @echo "Changes to $< will be ignored"
175 ${PS2PDF} `${AWK} 'BEGIN{s=8}; /BoundingBox/ {printf("-r%d -g%dx%d", s*72, s*$$4, s*$$5);}' $<` $< $@
179 ${ASCII2TEXI} $< > $@
183 @echo "****************************************************"
184 @echo "WARNING: pdflatex is missing on your system but"
185 @echo "$@ is out of date and needs to rebuilt."
186 @echo "Changes to $< will be ignored"
194 ${PERL} $(srcdir)/eps2png --png $< > $@