bfd/
[binutils.git] / etc / Makefile.in
blobdf461cfd59c308f3eea919fb7cf3f2083b1560aa
1 #
2 # Makefile.in for etc
5 DESTDIR =
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
10 srcdir = @srcdir@
11 VPATH = @srcdir@
13 bindir = @bindir@
14 libdir = @libdir@
15 tooldir = $(libdir)
16 datadir = @datadir@
18 mandir = @mandir@
19 man1dir = $(mandir)/man1
20 man2dir = $(mandir)/man2
21 man3dir = $(mandir)/man3
22 man4dir = $(mandir)/man4
23 man5dir = $(mandir)/man5
24 man6dir = $(mandir)/man6
25 man7dir = $(mandir)/man7
26 man8dir = $(mandir)/man8
27 man9dir = $(mandir)/man9
28 infodir = @infodir@
30 SHELL = /bin/sh
32 INSTALL = @INSTALL@
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@
34 INSTALL_DATA = @INSTALL_DATA@
36 MAKEINFO = `if [ -f ../texinfo/makeinfo/makeinfo ]; \
37 then echo ../texinfo/makeinfo/makeinfo; \
38 else echo makeinfo; fi`
39 TEXI2DVI = `if [ -f ../texinfo/util/texi2dvi ]; \
40 then echo ../texinfo/util/texi2dvi; \
41 else echo texi2dvi; fi`
42 TEXI2HTML = `if [ -f ../texinfo/makeinfo/makeinfo ]; \
43 then echo "../texinfo/makeinfo/makeinfo --html"; \
44 else echo "makeinfo --html"; fi`
46 DVIPS = dvips
48 # Where to find texinfo.tex to format documentation with TeX.
49 TEXIDIR = $(srcdir)/../texinfo
51 #### Host, target, and site specific Makefile fragments come in here.
52 ###
54 INFOFILES = standards.info configure.info
55 DVIFILES = standards.dvi configure.dvi
56 HTMLFILES = standards.html configure.html
58 all: info
59 install: install-info
61 uninstall:
63 info:
64 for f in $(INFOFILES); do \
65 if test -f $(srcdir)/`echo $$f | sed -e 's/.info$$/.texi/'`; then \
66 if $(MAKE) "MAKEINFO=$(MAKEINFO)" $$f; then \
67 true; \
68 else \
69 exit 1; \
70 fi; \
71 fi; \
72 done
74 install-info: info
75 $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(infodir)
76 if test ! -f standards.info; then cd $(srcdir); fi; \
77 if test -f standards.info; then \
78 for i in standards.info*; do \
79 $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
80 done; \
82 if test ! -f configure.info; then cd $(srcdir); fi; \
83 if test -f configure.info; then \
84 for i in configure.info*; do \
85 $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
86 done; \
89 html:
90 for f in $(HTMLFILES); do \
91 if test -f $(srcdir)/`echo $$f | sed -e 's/.html$$/.texi/'`; then \
92 if $(MAKE) "TEXI2HTML=$(TEXI2HTML)" $$f; then \
93 true; \
94 else \
95 exit 1; \
96 fi; \
97 fi; \
98 done
101 dvi:
102 for f in $(DVIFILES); do \
103 if test -f $(srcdir)/`echo $$f | sed -e 's/.dvi$$/.texi/'`; then \
104 if $(MAKE) "TEXI2DVI=$(TEXI2DVI)" $$f; then \
105 true; \
106 else \
107 exit 1; \
108 fi; \
109 fi; \
110 done
112 standards.info: $(srcdir)/standards.texi $(srcdir)/make-stds.texi
113 $(MAKEINFO) --no-split -I$(srcdir) -o standards.info $(srcdir)/standards.texi
115 standards.html: $(srcdir)/standards.texi $(srcdir)/make-stds.texi
116 $(TEXI2HTML) --no-split -I$(srcdir) -o standards.html $(srcdir)/standards.texi
118 standards.dvi: $(srcdir)/standards.texi
119 TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/standards.texi
121 standards.ps: standards.dvi
122 $(DVIPS) standards.dvi -o standards.ps
124 # makeinfo requires images to be in the current directory.
125 configure.info: $(srcdir)/configure.texi $(srcdir)/configdev.tin $(srcdir)/configbuild.tin
126 rm -f configdev.txt configbuild.txt
127 cp $(srcdir)/configdev.tin configdev.txt
128 cp $(srcdir)/configbuild.tin configbuild.txt
129 $(MAKEINFO) -I$(srcdir) -o configure.info $(srcdir)/configure.texi
130 rm -f configdev.txt configbuild.txt
132 # texi2dvi wants both the .txt and the .eps files.
133 configure.dvi: $(srcdir)/configure.texi $(srcdir)/configdev.tin $(srcdir)/configbuild.tin $(srcdir)/configdev.ein $(srcdir)/configbuild.ein
134 rm -f configdev.txt configbuild.txt
135 cp $(srcdir)/configdev.tin configdev.txt
136 cp $(srcdir)/configbuild.tin configbuild.txt
137 rm -f configdev.eps configbuild.eps
138 cp $(srcdir)/configdev.ein configdev.eps
139 cp $(srcdir)/configbuild.ein configbuild.eps
140 TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/configure.texi
141 rm -f configdev.txt configbuild.txt
142 rm -f configdev.eps configbuild.eps
144 # dvips requires images to be in the current directory
145 configure.ps: configure.dvi $(srcdir)/configdev.ein $(srcdir)/configbuild.ein
146 rm -f configdev.eps configbuild.eps
147 cp $(srcdir)/configdev.ein configdev.eps
148 cp $(srcdir)/configbuild.ein configbuild.eps
149 $(DVIPS) configure.dvi -o configure.ps
150 rm -f configdev.eps configbuild.eps
152 configure.html: $(srcdir)/configure.texi
153 cp $(srcdir)/configdev.jin configdev.jpg
154 cp $(srcdir)/configbuild.jin configbuild.jpg
155 $(TEXI2HTML) --no-split -I$(srcdir) -o configure.html $(srcdir)/configure.texi
157 clean:
158 rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
159 rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
160 rm -f configdev.txt configbuild.txt
161 rm -f configdev.eps configbuild.eps
162 rm -f configdev.jpg configbuild.jpg
164 mostlyclean: clean
166 distclean: clean
167 rm -f Makefile config.status config.cache
169 maintainer-clean realclean: distclean
170 rm -f *.html*
171 rm -f *.info*
173 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
174 $(SHELL) ./config.status
176 ## these last targets are for standards.texi conformance
177 dist:
178 check:
179 installcheck:
180 TAGS: