diff scripts/Makefile.in @ 8850:538184c540a9

Add make target "configfiles" to automatically regenerate configuration files
author Thorsten Meyer <thorsten.meyier@gmx.de>
date Tue, 24 Feb 2009 01:46:37 -0500
parents 39666c970996
children e258715b2e78
line wrap: on
line diff
--- a/scripts/Makefile.in	Tue Feb 24 00:57:01 2009 -0500
+++ b/scripts/Makefile.in	Tue Feb 24 01:46:37 2009 -0500
@@ -52,9 +52,24 @@
 FCN_FILES = # $(wildcard $(srcdir)/*.m)
 FCN_FILES_NO_DIR = # $(notdir $(FCN_FILES))
 
+CONFIG_FILES = @ac_config_files@
+
 all: $(SUBDIRS) DOCSTRINGS
 .PHONY: all
 
+configfiles: $(CONFIG_FILES)
+.PHONY: configfiles
+
+$(CONFIG_FILES): %: %.in config.status
+	./config.status $@
+
+config.status: configure
+	./config.status --recheck
+
+configure: configure.in
+	if [ ! -f skip-autoconf ]; then autoconf --force; fi
+	if [ ! -f skip-autoheader ]; then autoheader --force; fi
+
 $(SUBDIRS):
 	$(MAKE) -C $@ all
 .PHONY: $(SUBDIRS)