From b4c2ca809c89ccbf2c5abbc0ef270611f60b74d9 Mon Sep 17 00:00:00 2001
From: Lev Walkin <vlm@lionet.info>
Date: Wed, 15 Feb 2012 10:08:53 -0800
Subject: [PATCH] do not recompile .c files from .y,.l

---
 Makefile.in               |  2 +-
 libasn1parser/Makefile.am |  2 +-
 libasn1parser/Makefile.in | 28 +++-------------------------
 3 files changed, 5 insertions(+), 27 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index e807cf3c..a26efe2c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -468,7 +468,7 @@ distdir: $(DISTFILES)
 	      || exit 1; \
 	  fi; \
 	done
-	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+	-find $(distdir) -type d ! -perm -755 -exec chmod u+rwx,go+rx {} \; -o \
 	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
 	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
 	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
diff --git a/libasn1parser/Makefile.am b/libasn1parser/Makefile.am
index fcb0ef15..87c1fcc0 100644
--- a/libasn1parser/Makefile.am
+++ b/libasn1parser/Makefile.am
@@ -8,7 +8,7 @@ noinst_LTLIBRARIES = libasn1parser.la
 libasn1parser_la_LDFLAGS = -all-static
 libasn1parser_la_SOURCES =		\
 	asn1parser.c asn1parser.h	\
-	asn1p_y.y asn1p_l.l		\
+	asn1p_y.c asn1cp_y.h asn1p_l.c	\
 	asn1p_module.c asn1p_module.h	\
 	asn1p_oid.c asn1p_oid.h		\
 	asn1p_value.c asn1p_value.h	\
diff --git a/libasn1parser/Makefile.in b/libasn1parser/Makefile.in
index 40b5d128..79a04103 100644
--- a/libasn1parser/Makefile.in
+++ b/libasn1parser/Makefile.in
@@ -33,8 +33,7 @@ POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
 subdir = libasn1parser
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in asn1p_l.c \
-	asn1p_y.c asn1p_y.h
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
 	$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
@@ -67,13 +66,6 @@ CCLD = $(CC)
 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
 	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
 	$(LDFLAGS) -o $@
-LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
-LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
-	--mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS)
-YLWRAP = $(top_srcdir)/ylwrap
-YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)
-LTYACCCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
-	--mode=compile $(YACC) $(YFLAGS) $(AM_YFLAGS)
 SOURCES = $(libasn1parser_la_SOURCES)
 DIST_SOURCES = $(libasn1parser_la_SOURCES)
 ETAGS = etags
@@ -200,7 +192,7 @@ noinst_LTLIBRARIES = libasn1parser.la
 libasn1parser_la_LDFLAGS = -all-static
 libasn1parser_la_SOURCES = \
 	asn1parser.c asn1parser.h	\
-	asn1p_y.y asn1p_l.l		\
+	asn1p_y.c asn1cp_y.h asn1p_l.c	\
 	asn1p_module.c asn1p_module.h	\
 	asn1p_oid.c asn1p_oid.h		\
 	asn1p_value.c asn1p_value.h	\
@@ -218,7 +210,7 @@ EXTRA_DIST = expr-h.pl
 all: all-am
 
 .SUFFIXES:
-.SUFFIXES: .c .l .lo .o .obj .y
+.SUFFIXES: .c .lo .o .obj
 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
 	@for dep in $?; do \
 	  case '$(am__configure_deps)' in \
@@ -257,11 +249,6 @@ clean-noinstLTLIBRARIES:
 	  echo "rm -f \"$${dir}/so_locations\""; \
 	  rm -f "$${dir}/so_locations"; \
 	done
-asn1p_y.h: asn1p_y.c
-	@if test ! -f $@; then \
-	  rm -f asn1p_y.c; \
-	  $(MAKE) $(AM_MAKEFLAGS) asn1p_y.c; \
-	else :; fi
 libasn1parser.la: $(libasn1parser_la_OBJECTS) $(libasn1parser_la_DEPENDENCIES) 
 	$(libasn1parser_la_LINK)  $(libasn1parser_la_OBJECTS) $(libasn1parser_la_LIBADD) $(LIBS)
 
@@ -305,12 +292,6 @@ distclean-compile:
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
 
-.l.c:
-	$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
-
-.y.c:
-	$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE)
-
 mostlyclean-libtool:
 	-rm -f *.lo
 
@@ -419,9 +400,6 @@ distclean-generic:
 maintainer-clean-generic:
 	@echo "This command is intended for maintainers to use"
 	@echo "it deletes files that may require special tools to rebuild."
-	-rm -f asn1p_l.c
-	-rm -f asn1p_y.c
-	-rm -f asn1p_y.h
 clean: clean-am
 
 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
-- 
GitLab