summaryrefslogtreecommitdiff
path: root/xmds2/Nlevels_no_dopler_with_z_4wm/Makefile.par
blob: cc21c7bd4de086293cdfcbc146244b4146a8547e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
###  -*- make -*-
### This file is part of the Debian xmds package
### Copyright (C) 2006 Rafael Laboissiere
### This file is relased under the GNU General Public License
### NO WARRANTIES!

### This makefile can be used to build and run the XMDS examples


PARAMS_FILES = $(wildcard *.params)
PP_DIR = $(PARAMS_FILES:%.params=%)
CALC_XSIL_FILES = $(PARAMS_FILES:%.params=%/data.xsil)

default: $(CALC_XSIL_FILES) 

$(CALC_XSIL_FILES): %/data.xsil : % %.params  
	echo processing $$(dirname $(@)) dir
	$(MAKE) -C $$(dirname $(@)) -f ../Makefile.pp SCRIPTS_DIR=../ PARAMS_FILE=../$<.params  

$(PP_DIR): % : %.params
	echo need to make dir
	[ -d $@ ] ||  mkdir -p  $@

clean:
	for d in $(PP_DIR); \
	do $(MAKE) -C $$d SCRIPTS_DIR=../ -f ../Makefile.pp $@; done

real_clean:
	for d in $(PP_DIR); \
	do $(MAKE) -C $$d SCRIPTS_DIR=../ -f ../Makefile.pp $@; done

.PHONY: all clean