File: Makefile.am

package info (click to toggle)
pcb 20110918-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 22,304 kB
  • sloc: ansic: 121,422; sh: 7,232; yacc: 5,088; pascal: 4,136; makefile: 1,535; perl: 564; lex: 438; awk: 158; lisp: 86; tcl: 63; xml: 20
file content (175 lines) | stat: -rw-r--r-- 4,650 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
## -*- makefile -*-
##
##                            COPYRIGHT
##
##  PCB, interactive printed circuit board design
##  Copyright (C) 1994,1995,1996 Thomas Nau
##
##  This program is free software; you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation; either version 2 of the License, or
##  (at your option) any later version.
##
##  This program is distributed in the hope that it will be useful,
##  but WITHOUT ANY WARRANTY; without even the implied warranty of
##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##  GNU General Public License for more details.
##
##  You should have received a copy of the GNU General Public License
##  along with this program; if not, write to the Free Software
##  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
##  Contact addresses for paper mail and Email:
##  Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
##  Thomas.Nau@rz.uni-ulm.de
##

## not until it is fully fixed up in terms of building
##SUBDIRS=	gs

info_TEXINFOS=	pcb.texi

# We avoid adding all the dependencies when building from a tarball.
# This allows end users to use pre-built documentation instead of
# requiring recent versions of makeinfo and other tools used only
# to build the documentation.  Users who obtain the cutting edge sources
# via GIT are considered to be doing "development" and incur a slightly
# higher list of required tools.
if GIT_OR_CVS_VERSION
pcb_TEXINFOS=	${inline_texi} ${pcb_output} ${tab_texi} ${images_output}
else
pcb_TEXINFOS=
endif

dist_html_DATA=	${html_docs} ${pcb_output_inst} ${images_output_inst}
dist_pdf_DATA=	${pdf_docs}

dist_man_MANS=	pcb.1

html_docs=	${info_TEXINFOS:.texi=.html}
pdf_docs=	${info_TEXINFOS:.texi=.pdf} refcard.pdf

DVIS=

# put the html manual into 1 file instead of multiple files?
AM_MAKEINFOHTMLFLAGS=	--css-include=$(srcdir)/pcb.css --no-split

# use this to avoid having the clean target delete pcb.{dvi,html,pdf,ps}
# which unfortunately deletes files which are part of the distfile
mostlyclean-aminfo:
	-rm -rf pcb.aux pcb.cp pcb.cps pcb.fn pcb.fns pcb.ky pcb.kys pcb.log pcb.pg \
	pcb.pgs pcb.tmp pcb.toc pcb.tp pcb.tps pcb.vr pcb.vrs 

EXTRA_DIST= \
	ascii2texi.awk \
	eps2png \
	extract-docs \
	refcard.tex \
	pcb.css \
	${inline_texi} \
	${pcb_files} \
	${pcb_output_noinst} \
	${tab_files} \
	${tab_texi} \
	${images}

if GIT_OR_CVS_VERSION
BUILT_SOURCES=	${tab_texi} ${pcb_output} ${inline_texi}
CLEANFILES= \
	refcard.aux refcard.log refcard.pdf \
	${pcb_output} ${tab_texi} ${inline_texi} pcb.html pcb.pdf \
	${images_output}
else
BUILT_SOURCES=
endif

inline_texi=	\
	options.texi \
	actions.texi \
	pcbfile.texi

ASCII2TEXI=	${AWK} -f $(srcdir)/ascii2texi.awk ncol=3

# Tables
tab_files=	\
	fractional_size.tab \
	letter_size.tab \
	metric_size.tab \
	wire_size.tab
tab_texi=	${tab_files:.tab=.texi}

# PCB Drawings
pcb_files=	\
	pad.pcb \
	puller.pcb \
	thermal.pcb \
	gcode.pcb

pcb_output_noinst=	\
	${pcb_files:.pcb=.pdf}

pcb_output_inst=	\
	${pcb_files:.pcb=.png}

pcb_output=	${pcb_output_inst} ${pcb_output_noinst}

# Additional images
images= \
	gcode_control_img.eps \
	gcode_tool_path.eps

images_output_noinst= \
	${images:.eps=.pdf}

images_output_inst= \
	${images:.eps=.png}

images_output= ${images_output_noinst} ${images_output_inst}

${inline_texi} : extracted-docs

# no need to build these when building via a tarball.  They're not used then
# anyway.
.PHONY : extracted-docs
extracted-docs :
if GIT_OR_CVS_VERSION
	${PERL} $(srcdir)/extract-docs $(srcdir)
else
	@echo "Skipping documentation extraction since you are not building from GIT sources"
endif

SUFFIXES = .eps .pcb .pdf .png .tab .tex

.pcb.eps :
	${PCB} -x eps --only-visible --font-path $(top_srcdir)/src --eps-file $@ $<

.pcb.png :
	${PCB} -x png --only-visible --font-path $(top_srcdir)/src --outfile $@ $<

.eps.pdf :
if MISSING_PS2PDF
	@echo "****************************************************"
	@echo "WARNING:  ps2pdf is missing on your system but"
	@echo "$@ is out of date and needs to rebuilt."
	@echo "Changes to $< will be ignored"
else
	${PS2PDF} `${AWK} 'BEGIN{s=8}; /BoundingBox/ {printf("-r%d -g%dx%d", s*72, s*$$4, s*$$5);}' $<` $< $@
endif

.tab.texi:
	${ASCII2TEXI} $< > $@

.tex.pdf:
if MISSING_PDFLATEX
	@echo "****************************************************"
	@echo "WARNING:  pdflatex is missing on your system but"
	@echo "$@ is out of date and needs to rebuilt."
	@echo "Changes to $< will be ignored"
else
	${PDFLATEX} $<
	${PDFLATEX} $<
	${PDFLATEX} $<
endif

.eps.png:
	${PERL} $(srcdir)/eps2png --png $< > $@