release.sh changes & fixes
[minix3.git] / external / bsd / byacc / dist / makefile.in
blob440322e5eb6c725bf8226d9d82370600f64a1f3f
1 # Id: makefile.in,v 1.18 2012/09/29 13:10:15 Adrian.Bunk Exp
3 # UNIX template-makefile for Berkeley Yacc
5 THIS = yacc
7 #### Start of system configuration section. ####
9 srcdir = @srcdir@
10 VPATH = @srcdir@
12 CC = @CC@
14 INSTALL = @INSTALL@
15 INSTALL_PROGRAM = @INSTALL_PROGRAM@
16 INSTALL_DATA = @INSTALL_DATA@
17 transform = @program_transform_name@
19 DEFINES =
20 EXTRA_CFLAGS = @EXTRA_CFLAGS@
21 CPPFLAGS = -I. -I$(srcdir) $(DEFINES) -DHAVE_CONFIG_H -DYYPATCH=`cat $(srcdir)/VERSION` @CPPFLAGS@
22 CFLAGS = @CFLAGS@ $(CPPFLAGS) $(EXTRA_CFLAGS)
24 LDFLAGS = @LDFLAGS@
25 LIBS = @LIBS@
27 CTAGS = @CTAGS@
28 ETAGS = @ETAGS@
29 LINT = @LINT@
31 prefix = @prefix@
32 exec_prefix = @exec_prefix@
34 datarootdir = @datarootdir@
35 bindir = $(DESTDIR)@bindir@
36 mandir = $(DESTDIR)@mandir@/man1
37 manext = 1
39 testdir = $(srcdir)/test
41 x = @EXEEXT@
42 o = .@OBJEXT@
44 #### End of system configuration section. ####
46 SHELL = /bin/sh
47 @SET_MAKE@
49 H_FILES = \
50 defs.h
52 C_FILES = \
53 closure.c \
54 error.c \
55 graph.c \
56 lalr.c \
57 lr0.c \
58 main.c \
59 mkpar.c \
60 output.c \
61 reader.c \
62 skeleton.c \
63 symtab.c \
64 verbose.c \
65 warshall.c
67 OBJS = \
68 closure$o \
69 error$o \
70 graph$o \
71 lalr$o \
72 lr0$o \
73 main$o \
74 mkpar$o \
75 output$o \
76 reader$o \
77 skeleton$o \
78 symtab$o \
79 verbose$o \
80 warshall$o
82 TRANSFORM_BIN = sed 's/$x$$//' |sed '$(transform)'|sed 's/$$/$x/'
83 TRANSFORM_MAN = sed 's/$(manext)$$//'|sed '$(transform)'|sed 's/$$/$(manext)/'
85 actual_bin = `echo $(THIS)$x | $(TRANSFORM_BIN)`
86 actual_man = `echo $(THIS).$(manext)| $(TRANSFORM_MAN)`
88 all : $(THIS)$x
90 install: all installdirs
91 $(INSTALL_PROGRAM) $(THIS)$x $(bindir)/$(actual_bin)
92 - $(INSTALL_DATA) $(srcdir)/$(THIS).1 $(mandir)/$(actual_man)
94 installdirs:
95 mkdir -p $(bindir)
96 - mkdir -p $(mandir)
98 uninstall:
99 - rm -f $(bindir)/$(actual_bin)
100 - rm -f $(mandir)/$(actual_man)
102 ################################################################################
103 .SUFFIXES : $o .i .html .$(manext) .cat .ps .pdf .txt
105 .c$o:
106 @RULE_CC@
107 @ECHO_CC@$(CC) -c $(CFLAGS) $<
109 .c.i :
110 @RULE_CC@
111 @ECHO_CC@$(CPP) -C $(CPPFLAGS) $*.c >$@
113 .$(manext).cat :
114 - nroff -man $(srcdir)/$(THIS).$(manext) >$@
116 .$(manext).html :
117 GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | groff -Thtml -man" >$@
119 .$(manext).ps :
120 $(SHELL) -c "tbl $*.$(manext) | groff -man" >$@
122 .$(manext).txt :
123 GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | nroff -Tascii -man | col -bx" >$@
125 .ps.pdf :
126 ps2pdf $*.ps
128 ################################################################################
130 $(THIS)$x : $(OBJS)
131 @ECHO_LD@$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
133 mostlyclean :
134 - rm -f core .nfs* *$o *.bak *.BAK *.out
136 clean : mostlyclean
137 - rm -f $(THIS)$x
139 distclean : clean
140 - rm -f config.log config.cache config.status config.h makefile
141 - rm -f *.html *.cat *.pdf *.ps *.txt
142 - cd test && rm -f test-*
144 realclean: distclean
145 - rm -f tags TAGS
147 ################################################################################
148 docs :: $(THIS).html \
149 $(THIS).pdf \
150 $(THIS).ps \
151 $(THIS).txt
152 $(THIS).html : $(THIS).$(manext)
153 $(THIS).pdf : $(THIS).ps
154 $(THIS).ps : $(THIS).$(manext)
155 $(THIS).txt : $(THIS).$(manext)
156 ################################################################################
157 check: $(THIS)$x
158 $(SHELL) $(testdir)/run_test.sh $(testdir)
160 check_make: $(THIS)$x
161 $(SHELL) $(testdir)/run_make.sh $(testdir)
163 check_lint:
164 $(SHELL) $(testdir)/run_lint.sh $(testdir)
165 ################################################################################
166 tags: $(H_FILES) $(C_FILES)
167 $(CTAGS) $(C_FILES) $(H_FILES)
169 lint: $(C_FILES)
170 $(LINT) $(CPPFLAGS) $(C_FILES)
172 @MAKE_UPPER_TAGS@TAGS: $(H_FILES) $(C_FILES)
173 @MAKE_UPPER_TAGS@ $(ETAGS) $(C_FILES) $(H_FILES)
175 depend:
176 makedepend -- $(CPPFLAGS) -- $(C_FILES)
178 $(OBJS) : defs.h
180 main$o \
181 skeleton$o : makefile VERSION
183 # DO NOT DELETE THIS LINE -- make depend depends on it.