Debian Codegraph @

texk/cjkutils/cjkutils-src/hbf2gf/Makefile.in

raw
1 # Makefile for hbf2gf -- [email protected]
2
3 # Copyright (C) 1994-2021 Werner Lemberg <[email protected]>
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program in doc/COPYING; if not, write to the Free
17 # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
18 # MA 02110-1301 USA
19
20 VPATH = @srcdir@
21 srcdir = @srcdir@
22
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25 libdir = @libdir@
26 bindir = @bindir@
27 mandir = @mandir@
28
29 RM = @RM@
30 RMF = @RM@ -f
31
32 TEX = tex
33 CTANGLE = ctangle
34 CWEAVE = cweave
35
36 INSTALL = @INSTALL@
37 INSTALL_DATA = @INSTALL_DATA@
38 INSTALL_PROGRAM = @INSTALL_PROGRAM@
39
40 CC = @CC@
41 CPP = @CPP@
42
43 MKINSTALLDIRS = $(srcdir)/mkinstalldirs
44
45 CFLAGS = @CFLAGS@
46 CPPFLAGS = @CPPFLAGS@ @DEFS@ @no_strdup@ -Dunix
47 MY_CFLAGS = $(CFLAGS) $(CPPFLAGS) @XX_CFLAGS@
48 LDFLAGS = @LDFLAGS@ @LIBS@
49
50 SRC = hbf2gf.c $(srcdir)/hbf.c
51 OBJ = hbf2gf.o hbf.o
52
53
54 .SUFFIXES: .dvi .tex .w
55
56
57 .w.c:
58 $(CTANGLE) $<
59 .c.o:
60 $(CC) -c $(MY_CFLAGS) $<
61
62 .w.tex:
63 $(CWEAVE) +ai $<
64
65 .tex.dvi:
66 $(TEX) $<
67
68
69
70 PROGRAMS = hbf2gf
71
72 default all: $(PROGRAMS)
73
74 hbf2gf.c: $(srcdir)/hbf2gf.w
75
76 hbf2gf: $(OBJ)
77 $(CC) $(MY_CFLAGS) -o hbf2gf $(OBJ) $(LDFLAGS)
78
79 documentation: hbf2gf.dvi
80
81 install: $(PROGRAMS)
82 $(MKINSTALLDIRS) $(bindir) $(mandir)/man1
83 for P in $(PROGRAMS) ; do \
84 $(INSTALL_PROGRAM) $$P $(bindir)/$$P ; \
85 $(INSTALL_DATA) $(srcdir)/$$P.1 $(mandir)/man1 ; \
86 done
87
88 uninstall:
89 -for P in $(PROGRAMS) ; do \
90 $(RMF) $(bindir)/$$P ; \
91 $(RMF) $(mandir)/man1/$$P.1 ; \
92 done
93
94 clean: do_clean
95
96 distclean: do_clean
97 -$(RMF) dep.end $(PROGRAMS) *.dvi
98 -$(RMF) *~ *.orig core *.core
99 -$(RMF) config.cache config.log config.status Makefile
100
101 do_clean:
102 -$(RMF) *.o
103 -$(RMF) *.scn *.toc *.idx *.log
104
105 maintainer-clean: distclean
106 -$(RMF) hbf2gf.c
107
108 depend: $(SRC)
109 (echo '/^#.* PUT NO STUFF BELOW/,$$d'; echo w; echo q) | \
110 ed - Makefile
111 echo '# Dependencies generated by make depend: PUT NO STUFF BELOW' \
112 >> Makefile
113 for file in $(SRC) ; do \
114 $(CPP) $(CPPFLAGS) $$file | \
115 sed -n -e 's|^# [1-9][0-9]* "\([^/].*\.h\)".*|\1|p' \
116 -e 's|^# [1-9][0-9]* "\($(srcdir)/.*\.h\)".*|\1|p' | \
117 sed -e 's|/\./|.|g' -e "s/^/`basename $$file .c`.o: /" ; \
118 done | \
119 sort -u | \
120 awk '{ if (LINE == 1) \
121 { line = last = $$1 } \
122 else if ($$1 != last) \
123 { print line ; line = last = $$1 } \
124 line = line " " $$2 } \
125 END { print line }' >> Makefile
126
127 # Dependencies generated by make depend: PUT NO STUFF BELOW