Mercurial > forge
view Makefile @ 1720:b4586377f0a6 octave-forge
[for Dan McMahill] use INSTALL_SCRIPT for scripts
author | pkienzle |
---|---|
date | Thu, 09 Sep 2004 11:53:25 +0000 |
parents | 87ff1192bf31 |
children | 250c9ad7c68e |
line wrap: on
line source
sinclude Makeconf ifeq ($(MPATH),$(OPATH)) LOADPATH = $(MPATH)//: else LOADPATH = $(MPATH)//:$(OPATH)//: endif RUN_OCTAVE=admin/run_forge $(OCTAVE) --norc SUBMAKEDIRS = $(dir $(wildcard */Makefile)) .PHONY: subdirs clearlog $(SUBMAKEDIRS) ifdef OCTAVE_FORGE .PHONY: all install check icheck all: subdirs @echo "Build finished." @echo "Please read FIXES/README before you install." @if test -f build.fail ; then cat build.fail; false; fi install: subdirs @echo " " @echo "Installation complete." @echo " " @echo "To use, add the following to .octaverc:" @echo " LOADPATH = [ '$(OPATH):$(MPATH)//:', LOADPATH ];" @echo " EXEC_PATH = [ '$(XPATH):', EXEC_PATH ];" @echo " " @echo "To uninstall, remove the following:" @echo " MPATH = $(MPATH)" @echo " OPATH = $(OPATH)" @echo " XPATH = $(XPATH)" @echo " ALTMPATH = $(ALTMPATH)" @echo " ALTOPATH = $(ALTOPATH)" @echo " " @echo "Some FIXES may be out of date. Check the scripts in:" @echo " $(MPATH)/FIXES" @echo " $(OPATH)" @echo "against those in your version of Octave." check: admin/mktests.sh $(RUN_OCTAVE) -q fntests.m $(RUN_OCTAVE) -q batch_test.m icheck: @echo 'disp("starting demos...")' > fndemos.m @for file in `grep -l '^%!demo' */*/*.{cc,m}` ; do \ echo "demo('$$file');" >> fndemos.m ; done $(RUN_OCTAVE) -q fndemos.m $(RUN_OCTAVE) -q interact_test.m run: $(RUN_OCTAVE) else .PHONY: all install all install: @echo "./configure ; make ; make install" endif .PHONY: clean distclean dist checkindist changelog clean: subdirs -$(RM) core octave-core octave configure.in distclean: clean -$(RM) Makeconf octinst.sh config.cache config.status config.log \ build.log build.fail *~ dist: checkindist subdirs -$(RM) build.log build.fail admin/get_authors ./autogen.sh checkindist: @if test -d CVS; then \ echo Follow the instructions in octave-forge/release.sh && false; \ else true; fi subdirs: clearlog $(SUBMAKEDIRS) clearlog: ; @-$(RM) build.log build.fail $(SUBMAKEDIRS): @echo Processing $@ @if cd $@ && ! $(MAKE) -k $(MAKECMDGOALS) 2>&1; then \ echo "$@ not complete. See log for details" >>../build.fail ; \ fi | tee -a build.log