summaryrefslogtreecommitdiffstats
path: root/contrib/byacc/makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/byacc/makefile.in')
-rw-r--r--contrib/byacc/makefile.in62
1 files changed, 27 insertions, 35 deletions
diff --git a/contrib/byacc/makefile.in b/contrib/byacc/makefile.in
index d3d9655..1701862 100644
--- a/contrib/byacc/makefile.in
+++ b/contrib/byacc/makefile.in
@@ -1,4 +1,4 @@
-# $Id: makefile.in,v 1.18 2012/09/29 13:10:15 Adrian.Bunk Exp $
+# $Id: makefile.in,v 1.23 2014/04/09 12:15:52 tom Exp $
#
# UNIX template-makefile for Berkeley Yacc
@@ -24,9 +24,11 @@ CFLAGS = @CFLAGS@ $(CPPFLAGS) $(EXTRA_CFLAGS)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
+AWK = @AWK@
CTAGS = @CTAGS@
ETAGS = @ETAGS@
LINT = @LINT@
+LINTFLAGS = @LINT_OPTS@
prefix = @prefix@
exec_prefix = @exec_prefix@
@@ -38,6 +40,7 @@ manext = 1
testdir = $(srcdir)/test
+SKELETON = @SKELETON@
x = @EXEEXT@
o = .@OBJEXT@
@@ -57,9 +60,10 @@ C_FILES = \
lr0.c \
main.c \
mkpar.c \
+ mstring.c \
output.c \
reader.c \
- skeleton.c \
+ $(SKELETON).c \
symtab.c \
verbose.c \
warshall.c
@@ -72,13 +76,18 @@ OBJS = \
lr0$o \
main$o \
mkpar$o \
+ mstring$o \
output$o \
reader$o \
- skeleton$o \
+ $(SKELETON)$o \
symtab$o \
verbose$o \
warshall$o
+YACCPAR = \
+ btyaccpar.c \
+ yaccpar.c
+
TRANSFORM_BIN = sed 's/$x$$//' |sed '$(transform)'|sed 's/$$/$x/'
TRANSFORM_MAN = sed 's/$(manext)$$//'|sed '$(transform)'|sed 's/$$/$(manext)/'
@@ -100,7 +109,7 @@ uninstall:
- rm -f $(mandir)/$(actual_man)
################################################################################
-.SUFFIXES : $o .i .html .$(manext) .cat .ps .pdf .txt
+.SUFFIXES : .c $o .i .skel
.c$o:
@RULE_CC@
@@ -110,20 +119,8 @@ uninstall:
@RULE_CC@
@ECHO_CC@$(CPP) -C $(CPPFLAGS) $*.c >$@
-.$(manext).cat :
- - nroff -man $(srcdir)/$(THIS).$(manext) >$@
-
-.$(manext).html :
- GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | groff -Thtml -man" >$@
-
-.$(manext).ps :
- $(SHELL) -c "tbl $*.$(manext) | groff -man" >$@
-
-.$(manext).txt :
- GROFF_NO_SGR=stupid $(SHELL) -c "tbl $*.$(manext) | nroff -Tascii -man | col -bx" >$@
-
-.ps.pdf :
- ps2pdf $*.ps
+.skel.c :
+ $(AWK) -f $(srcdir)/skel2c $*.skel > $@
################################################################################
@@ -133,26 +130,21 @@ $(THIS)$x : $(OBJS)
mostlyclean :
- rm -f core .nfs* *$o *.bak *.BAK *.out
-clean : mostlyclean
+clean :: mostlyclean
- rm -f $(THIS)$x
-distclean : clean
+distclean :: clean
- rm -f config.log config.cache config.status config.h makefile
- - rm -f *.html *.cat *.pdf *.ps *.txt
- - cd test && rm -f test-*
+ - rm -f $(testdir)/yacc/test-* $(testdir)/btyacc/test-*
-realclean: distclean
+realclean :: distclean
- rm -f tags TAGS
-################################################################################
-docs :: $(THIS).html \
- $(THIS).pdf \
- $(THIS).ps \
- $(THIS).txt
-$(THIS).html : $(THIS).$(manext)
-$(THIS).pdf : $(THIS).ps
-$(THIS).ps : $(THIS).$(manext)
-$(THIS).txt : $(THIS).$(manext)
+sources : $(YACCPAR)
+
+maintainer-clean :: realclean
+ rm -f $(YACCPAR)
+
################################################################################
check: $(THIS)$x
$(SHELL) $(testdir)/run_test.sh $(testdir)
@@ -167,7 +159,7 @@ tags: $(H_FILES) $(C_FILES)
$(CTAGS) $(C_FILES) $(H_FILES)
lint: $(C_FILES)
- $(LINT) $(CPPFLAGS) $(C_FILES)
+ $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(C_FILES)
@MAKE_UPPER_TAGS@TAGS: $(H_FILES) $(C_FILES)
@MAKE_UPPER_TAGS@ $(ETAGS) $(C_FILES) $(H_FILES)
@@ -175,9 +167,9 @@ lint: $(C_FILES)
depend:
makedepend -- $(CPPFLAGS) -- $(C_FILES)
-$(OBJS) : defs.h
+$(OBJS) : defs.h makefile
main$o \
-skeleton$o : makefile VERSION
+$(SKELETON)$o : VERSION
# DO NOT DELETE THIS LINE -- make depend depends on it.
OpenPOWER on IntegriCloud