summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/cjk/utils/hbf2gf/Makefile.in
blob: 937d5d6f8183b4a62ed503240b6cd87eaea863e9 (plain)
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
# Makefile for hbf2gf -- wl@gnu.org

# Copyright (C) 1994-2015  Werner Lemberg <wl@gnu.org>
#
# 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 in doc/COPYING; if not, write to the Free
# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
# MA 02110-1301 USA

VPATH = @srcdir@
srcdir = @srcdir@

prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
bindir = @bindir@
mandir = @mandir@

RM = @RM@
RMF = @RM@ -f

TEX = tex
CTANGLE = ctangle
CWEAVE = cweave

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

CC = @CC@
CPP = @CPP@

MKINSTALLDIRS = $(srcdir)/mkinstalldirs

CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@ @DEFS@ @no_strdup@ -Dunix
MY_CFLAGS = $(CFLAGS) $(CPPFLAGS) @XX_CFLAGS@
LDFLAGS = @LDFLAGS@ @LIBS@

SRC = hbf2gf.c $(srcdir)/hbf.c
OBJ = hbf2gf.o hbf.o


.SUFFIXES: .dvi .tex .w


.w.c:
	$(CTANGLE) $<
.c.o:
	$(CC) -c $(MY_CFLAGS) $<

.w.tex:
	$(CWEAVE) +ai $<

.tex.dvi:
	$(TEX) $<



PROGRAMS = hbf2gf

default all: $(PROGRAMS)

hbf2gf.c: $(srcdir)/hbf2gf.w

hbf2gf: $(OBJ)
	$(CC) $(MY_CFLAGS) -o hbf2gf $(OBJ) $(LDFLAGS)

documentation: hbf2gf.dvi

install: $(PROGRAMS)
	$(MKINSTALLDIRS) $(bindir) $(mandir)/man1
	for P in $(PROGRAMS) ; do \
          $(INSTALL_PROGRAM) $$P $(bindir)/$$P ; \
          $(INSTALL_DATA) $(srcdir)/$$P.1 $(mandir)/man1 ; \
        done

uninstall:
	-for P in $(PROGRAMS) ; do \
          $(RMF) $(bindir)/$$P ; \
          $(RMF) $(mandir)/man1/$$P.1 ; \
        done

clean: do_clean

distclean: do_clean
	-$(RMF) dep.end $(PROGRAMS) *.dvi
	-$(RMF) *~ *.orig core *.core
	-$(RMF) config.cache config.log config.status Makefile

do_clean:
	-$(RMF) *.o
	-$(RMF) *.scn *.toc *.idx *.log

maintainer-clean: distclean
	-$(RMF) hbf2gf.c

depend: $(SRC)
	(echo '/^#.* PUT NO STUFF BELOW/,$$d'; echo w; echo q) | \
         ed - Makefile
	echo '# Dependencies generated by make depend: PUT NO STUFF BELOW' \
          >> Makefile
	for file in $(SRC) ; do \
          $(CPP) $(CPPFLAGS) $$file | \
           sed -n -e 's|^# [1-9][0-9]* "\([^/].*\.h\)".*|\1|p' \
                  -e 's|^# [1-9][0-9]* "\($(srcdir)/.*\.h\)".*|\1|p' | \
           sed -e 's|/\./|.|g' -e "s/^/`basename $$file .c`.o: /" ; \
        done | \
         sort -u | \
         awk '{ if (LINE == 1) \
                  { line = last = $$1 } \
                else if ($$1 != last) \
                  { print line ; line = last = $$1 } \
                line = line " " $$2 } \
              END { print line }' >> Makefile

# Dependencies generated by make depend: PUT NO STUFF BELOW