* Makefile.am (regen-dist): New phony target.
($(srcdir)/headers.mk): New target.
---
milena/ChangeLog | 7 +++++++
milena/Makefile.am | 11 ++++++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 988fd97..9389abb 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2009-02-03 Roland Levillain <roland(a)lrde.epita.fr>
+ Add a target to regen milena/headers.mk.
+
+ * Makefile.am (regen-dist): New phony target.
+ ($(srcdir)/headers.mk): New target.
+
+2009-02-03 Roland Levillain <roland(a)lrde.epita.fr>
+
Generate tests/unit_test/unit-tests.mk.
* tests/unit_test/build_unit_test.sh (output): New variable.
diff --git a/milena/Makefile.am b/milena/Makefile.am
index cb295b9..75e9261 100644
--- a/milena/Makefile.am
+++ b/milena/Makefile.am
@@ -15,7 +15,16 @@ doc:
tutorial:
$(MAKE) -C doc tutorial
-include $(top_srcdir)/milena/headers.mk
+.PHONY: regen-dist
+regen-dist: $(srcdir)/headers.mk
+# FIXME: Change generate_dist_headers.sh so that the action looks like this:
+#
+# $< $@.tmp && mv -f $@.tmp $@ && chmod -w $@
+#
+$(srcdir)/headers.mk: $(srcdir)/generate_dist_headers.sh
+ cd $(srcdir) && ./generate_dist_headers.sh && chmod -w $@
+
+include $(srcdir)/headers.mk
EXTRA_DIST = \
img/README \
--
1.6.1.2
Show replies by date