examples: fix dependencies

Commit 112ccb5ed7 moved the skeletons
from dist_pkgdata_DATA to dist_skeletons_DATA, hence broke the dependencies.

* Makefile.am (dependencies): New.
Use it where appropriate.
This commit is contained in:
Akim Demaille
2018-12-26 08:44:01 +01:00
parent f44fcd30ea
commit 50285ff066
5 changed files with 13 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ if ENABLE_CXX14
# Don't use gnulib's system headers.
%C%_simple_CPPFLAGS = -I$(top_builddir)
TESTS += %D%/simple.test
%D%/simple.cc: $(BISON_IN) $(dist_pkgdata_DATA)
%D%/simple.cc: $(dependencies)
endif
EXTRA_DIST += %D%/simple.test
@@ -52,7 +52,7 @@ if ENABLE_CXX
# Don't use gnulib's system headers.
%C%_variant_CPPFLAGS = -I$(top_builddir)
TESTS += %D%/variant.test
%D%/variant.cc: $(BISON_IN) $(dist_pkgdata_DATA)
%D%/variant.cc: $(dependencies)
endif
EXTRA_DIST += %D%/variant.test
@@ -63,7 +63,7 @@ if ENABLE_CXX11
# Don't use gnulib's system headers.
%C%_variant_11_CPPFLAGS = -I$(top_builddir)
TESTS += %D%/variant-11.test
%D%/variant-11.cc: $(BISON_IN) $(dist_pkgdata_DATA)
%D%/variant-11.cc: $(dependencies)
endif
EXTRA_DIST += %D%/variant-11.test