Work around stupid automake dependency-tracking bug
authorDaniel Stone <daniel@fooishbar.org>
Mon, 4 Jun 2012 13:06:01 +0000 (14:06 +0100)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 4 Jun 2012 13:06:01 +0000 (14:06 +0100)
bison/flex-generated objects, when being run in a VPATH build with
--disable-dependency-tracking (i.e. Gentoo), would fail to be created
because automake didn't bother creating the destination directories
before trying to create the objects.

Fix this by depending on the destination directory stamp, which
according to the automake mailing list, should hopefully remain fairly
stable.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Makefile.am

index 02d53c3..655bc7b 100644 (file)
@@ -93,6 +93,10 @@ BUILT_SOURCES = \
        src/ks_tables.h
 CLEANFILES = $(BUILT_SOURCES)
 
+src/xkbcomp/parser.c: src/$(am__dirstamp) src/xkbcomp/$(am__dirstamp)
+src/xkbcomp/parser.h: src/$(am__dirstamp) src/xkbcomp/$(am__dirstamp)
+src/xkbcomp/scanner.c: src/$(am__dirstamp) src/xkbcomp/$(am__dirstamp)
+
 src/ks_tables.h: $(KEYSYMDEFS) $(top_builddir)/makekeys/makekeys$(EXEEXT)
        $(AM_V_GEN)$(top_builddir)/makekeys/makekeys $(top_srcdir)/include/xkbcommon/xkbcommon-keysyms.h > $@