Mercurial > forge
comparison extra/Makefile @ 0:6b33357c7561 octave-forge
Initial revision
author | pkienzle |
---|---|
date | Wed, 10 Oct 2001 19:54:49 +0000 |
parents | |
children | 918cc682e7be |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6b33357c7561 |
---|---|
1 | |
2 include ../Makeconf | |
3 | |
4 SUBMAKES = $(wildcard */Makefile) | |
5 MAKE_SUBDIRS = $(dir $(SUBMAKES)) | |
6 INSTALL_SUBDIRS = $(filter-out Makefile, $(wildcard *)) | |
7 | |
8 .PHONY: all install clean $(MAKE_SUBDIRS) $(INSTALL_SUBDIRS) | |
9 | |
10 all: $(MAKE_SUBDIRS) | |
11 | |
12 $(MAKE_SUBDIRS): | |
13 @if test ! -f $@/NOINSTALL || test x$(MAKECMDGOALS) = xclean ; then \ | |
14 cd $@ && $(MAKE) $(MAKECMDGOALS) ; \ | |
15 fi | |
16 | |
17 install: $(INSTALL_SUBDIRS) | |
18 @if test ! -f mex/NOINSTALL ; then \ | |
19 cd mex && $(MAKE) install ; \ | |
20 fi | |
21 | |
22 $(INSTALL_SUBDIRS): | |
23 @if test -f $@/NOINSTALL ; then \ | |
24 echo skipping $@ ; \ | |
25 else \ | |
26 echo installing $@ to $(MPATH)/$@ ; \ | |
27 ../$(INSTALLOCT) $@ $(MPATH)/$@ $(OPATH) $(XPATH) ; \ | |
28 fi | |
29 | |
30 clean: $(MAKE_SUBDIRS) | |
31 |