-DBISON_LOCALEDIR=\"$(BISON_LOCALEDIR)\" \
-DLOCALEDIR=\"$(localedir)\"
+AM_CFLAGS = $(GSL_CFLAGS)
+
MAINTAINERCLEANFILES = src/scan.c src/scan.h src/scan.stamp \
src/parse.c src/parse.h src/parse.stamp
EXTRA_DIST = m4/gnulib-cache.m4 src/types.lst src/validtypes.sed \
src/specs.lst src/namespecs.sed src/ordspecs.sed \
src/errors.lst src/strtab.sed \
- src/parse.stamp src/scan.stamp \
+ src/parse.y src/parse.stamp src/scan.l src/scan.stamp \
COPYING.WTFPL2
dist_man_MANS = doc/man/cdecl99.1 doc/man/libcdecl.3
check_PROGRAMS =
EXTRA_LTLIBRARIES = libtest.la
-libtest_la_CFLAGS = $(AM_CFLAGS) $(GSL_CFLAGS)
libtest_la_LIBADD = $(GSL_LIBS)
libtest_la_SOURCES = test/testlib.c
src/error.lo: src/errtab.h
src/normalize.lo: src/ordspecs.h
src/output.lo: src/namespecs.h
-
-# This is gross.
-declgen_o = test/libtest_la-declgen.lo
-$(declgen_o): test/typegen.h
+test/declgen.lo: test/typegen.h
src/validtypes.h: $(srcdir)/src/types.lst $(srcdir)/src/validtypes.sed
$(AM_V_GEN)sed -f $(srcdir)/src/validtypes.sed \
update-headers: unfuck-distdir
touch -c '$(distdir)/src/scan.h'
touch -c '$(distdir)/src/parse.h'
+.PHONY: update-headers
# When running "make dist" in a VPATH build with a read-only srcdir, Automake
# will produce a distribution with all files read-only. Moreover, the files
dist-hook: unfuck-distdir
unfuck-distdir:
find '$(distdir)' -type f -exec chmod u+w {} +
+.PHONY: unfuck-distdir
# Supporting rules for bison/flex.