daily update
[binutils.git] / etc / Makefile.in
blobb99daf99b14c5e5f6bd7b0de13c34e9f06092377
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 = texi2html
43 DVIPS = dvips
45 # Where to find texinfo.tex to format documentation with TeX.
46 TEXIDIR = $(srcdir)/../texinfo
48 #### Host, target, and site specific Makefile fragments come in here.
49 ###
51 INFOFILES = standards.info configure.info
52 DVIFILES = standards.dvi configure.dvi
54 all: info
55 install: install-info
57 uninstall:
59 info:
60 for f in $(INFOFILES); do \
61 if test -f $(srcdir)/`echo $$f | sed -e 's/.info$$/.texi/'`; then \
62 if $(MAKE) "MAKEINFO=$(MAKEINFO)" $$f; then \
63 true; \
64 else \
65 exit 1; \
66 fi; \
67 fi; \
68 done
70 install-info: info
71 $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(infodir)
72 if test ! -f standards.info; then cd $(srcdir); fi; \
73 if test -f standards.info; then \
74 for i in standards.info*; do \
75 $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
76 done; \
78 if test ! -f configure.info; then cd $(srcdir); fi; \
79 if test -f configure.info; then \
80 for i in configure.info*; do \
81 $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
82 done; \
85 dvi:
86 for f in $(DVIFILES); do \
87 if test -f $(srcdir)/`echo $$f | sed -e 's/.dvi$$/.texi/'`; then \
88 if $(MAKE) "TEXI2DVI=$(TEXI2DVI)" $$f; then \
89 true; \
90 else \
91 exit 1; \
92 fi; \
93 fi; \
94 done
96 standards.info: $(srcdir)/standards.texi $(srcdir)/make-stds.texi
97 $(MAKEINFO) --no-split -I$(srcdir) -o standards.info $(srcdir)/standards.texi
99 standards.dvi: $(srcdir)/standards.texi
100 TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/standards.texi
102 standards.ps: standards.dvi
103 $(DVIPS) standards.dvi -o standards.ps
105 # makeinfo requires images to be in the current directory.
106 configure.info: $(srcdir)/configure.texi $(srcdir)/configdev.tin $(srcdir)/configbuild.tin
107 rm -f configdev.txt configbuild.txt
108 cp $(srcdir)/configdev.tin configdev.txt
109 cp $(srcdir)/configbuild.tin configbuild.txt
110 $(MAKEINFO) -I$(srcdir) -o configure.info $(srcdir)/configure.texi
111 rm -f configdev.txt configbuild.txt
113 # texi2dvi wants both the .txt and the .eps files.
114 configure.dvi: $(srcdir)/configure.texi $(srcdir)/configdev.tin $(srcdir)/configbuild.tin $(srcdir)/configdev.ein $(srcdir)/configbuild.ein
115 rm -f configdev.txt configbuild.txt
116 cp $(srcdir)/configdev.tin configdev.txt
117 cp $(srcdir)/configbuild.tin configbuild.txt
118 rm -f configdev.eps configbuild.eps
119 cp $(srcdir)/configdev.ein configdev.eps
120 cp $(srcdir)/configbuild.ein configbuild.eps
121 TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/configure.texi
122 rm -f configdev.txt configbuild.txt
123 rm -f configdev.eps configbuild.eps
125 # dvips requires images to be in the current directory
126 configure.ps: configure.dvi $(srcdir)/configdev.ein $(srcdir)/configbuild.ein
127 rm -f configdev.eps configbuild.eps
128 cp $(srcdir)/configdev.ein configdev.eps
129 cp $(srcdir)/configbuild.ein configbuild.eps
130 $(DVIPS) configure.dvi -o configure.ps
131 rm -f configdev.eps configbuild.eps
133 configure.html: $(srcdir)/configure.texi
134 $(TEXI2HTML) -split_chapter $(srcdir)/configure.texi
136 clean:
137 rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
138 rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
139 rm -f configdev.txt configbuild.txt configdev.eps configbuild.eps
140 rm -f configdev.jpg configbuild.jpg
142 mostlyclean: clean
144 distclean: clean
145 rm -f Makefile config.status config.cache
147 maintainer-clean realclean: distclean
148 rm -f *.info*
150 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
151 $(SHELL) ./config.status
153 ## these last targets are for standards.texi conformance
154 dist:
155 check:
156 installcheck:
157 TAGS: