]> git.draconx.ca Git - cdecl99.git/blobdiff - Makefile.am
Start implementing proper error handling.
[cdecl99.git] / Makefile.am
index 7c2099b8a9f2c5f810574bd714e9e42da4df2027..f387ee348d3cbbe204294f2d1688cfa130dbdde2 100644 (file)
@@ -29,7 +29,8 @@ EXTRA_DIST = m4/gnulib-cache.m4 src/types.lst src/typenames.sed \
 dist_man_MANS = doc/man/cdecl99.1 doc/man/libcdecl.3
 
 include_HEADERS = src/cdecl.h
-noinst_HEADERS = src/typemap.h src/output.h src/scan.h src/parse.h src/i18n.h
+noinst_HEADERS = src/typemap.h src/output.h src/scan.h src/parse.h src/i18n.h \
+       src/error.h
 
 noinst_DATA = $(MOFILES)
 
@@ -37,7 +38,7 @@ lib_LTLIBRARIES = libcdecl.la
 libcdecl_la_LDFLAGS = -no-undefined \
        -export-symbols-regex '^cdecl_[[:lower:]]'
 libcdecl_la_SOURCES = src/scan.c src/parse.c src/parse-decl.c src/typemap.c \
-       src/output.c src/explain.c src/declare.c src/i18n.c
+       src/output.c src/explain.c src/declare.c src/i18n.c src/error.c
 libcdecl_la_LIBADD = libgnu.la $(LTLIBINTL) $(LTLIBTHREAD)
 $(libcdecl_la_OBJECTS): $(gnulib_headers)
 
@@ -120,6 +121,15 @@ uninstall-mo:
 src/scan.c src/scan.h: src/scan.stamp
 src/parse.c src/parse.h: src/parse.stamp
 
+# The flex/bison rules refrain from updating unchanged headers for the
+# convenience of developers, but the headers must be distributed with
+# up-to-date timestamps, otherwise make will try to update them in a fresh
+# VPATH build.
+dist-hook: update-headers
+update-headers:
+       touch -c '$(distdir)/src/scan.h'
+       touch -c '$(distdir)/src/parse.h'
+
 # Supporting rules for bison/flex.
 
 BISON_V   = $(BISON_V_$(V))