summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-03-27 15:04:36 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-03-27 15:04:36 +0000
commitdcea6b26a3221be92559829606f4d089cee6fa77 (patch)
treeebe08fca2b006f90a2270ba90c6d16952beeee7a
parentd79b3e5b3a86ff2dd3163a0fc9d80c2461b23351 (diff)
downloadlasso-dcea6b26a3221be92559829606f4d089cee6fa77.tar.gz
lasso-dcea6b26a3221be92559829606f4d089cee6fa77.tar.xz
lasso-dcea6b26a3221be92559829606f4d089cee6fa77.zip
Makefile: missing dependencies for built sources
* lasso/Makefile.am: remove .PHONY declaration on built sources and set appropriate dependencies. * lasso/extract_types.py: with new dependencies well defined in Makefile no need to verify change in the content of the file, just overwrite it.
-rw-r--r--lasso/Makefile.am8
-rw-r--r--lasso/extract_types.py3
2 files changed, 4 insertions, 7 deletions
diff --git a/lasso/Makefile.am b/lasso/Makefile.am
index 82e09bf3..671cad10 100644
--- a/lasso/Makefile.am
+++ b/lasso/Makefile.am
@@ -26,10 +26,10 @@ if WSF_ENABLED
SYMBOLS_ARGS = -wsf
endif
-types.c:
+types.c: *.h */*.h */*/*.h
$(PYTHON) $(srcdir)/extract_types.py $(srcdir) $(SYMBOLS_ARGS)
-symbols.sym:
+symbols.sym: *.h */*.h */*/*.h
$(PYTHON) $(srcdir)/extract_symbols.py $(srcdir) $(SYMBOLS_ARGS) > symbols.sym
MAINTAINERCLEANFILES = \
@@ -40,7 +40,7 @@ clean-local:
-rm types.c symbols.sym errors.c
EXTRA_DIST = utils.h extract_types.py extract_symbols.py build_strerror.py \
- registry-private.h errors.h.in
+ registry-private.h errors.c.in
if WSF_ENABLED
WSF_LIB_FILE = $(top_builddir)/lasso/id-wsf/liblasso-id-wsf.la
@@ -86,5 +86,3 @@ errors.c: errors.h
if ! cmp -s $(srcdir)/errors.c $(srcdir)/.errors.c.new; then \
mv -f $(srcdir)/.errors.c.new $(srcdir)/errors.c; else \
rm $(srcdir)/.errors.c.new; fi
-
-.PHONY: types.c symbols.sym
diff --git a/lasso/extract_types.py b/lasso/extract_types.py
index f6dc4abe..36f1fdc8 100644
--- a/lasso/extract_types.py
+++ b/lasso/extract_types.py
@@ -61,5 +61,4 @@ for header_file in header_files:
print >> fd, "\tNULL"
print >> fd, "};"
-if not os.path.exists('types.c') or fd.getvalue() != file('types.c').read():
- file('types.c', 'w').write(fd.getvalue())
+file('types.c', 'w').write(fd.getvalue())