Mercurial > octave-nkf
diff octMakefile.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 | 8b7e448d989c |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/octMakefile.in Tue Feb 24 00:57:01 2009 -0500 +++ b/octMakefile.in Tue Feb 24 01:46:37 2009 -0500 @@ -71,6 +71,10 @@ SHELL_SCRIPTS = octave-bug octave-config mkoctfile run-octave +CONFIG_FILES = @ac_config_files@ + +M4_FILES = $(wildcard *.m4) + all: $(SHELL_SCRIPTS) $(filter-out libcruft liboctave, $(SUBDIRS)) dist-info-files @echo "" @echo "Octave successfully built. Now choose from the following:" @@ -81,6 +85,22 @@ @echo "" .PHONY: all +configfiles: $(CONFIG_FILES) + for dir in $(CONFIG_SUBDIRS); do \ + $(MAKE) -C $$dir configfiles; \ + done +.PHONY: configfiles + +$(CONFIG_FILES): %: %.in config.status + ./config.status $@ + +config.status: configure + ./config.status --recheck + +configure: configure.in $(M4_FILES) + (cd $(top_srcdir); autoconf --force) + (cd $(top_srcdir); autoheader --force) + src: liboctave liboctave: libcruft