aboutsummaryrefslogtreecommitdiff
path: root/m/Makefile
blob: 4d19481fc707bd19cb793e10918737b1c5c26ab9 (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
# -*-Makefile-*-

all: WeylScal4.out
	@echo
	@echo "The Cactus thorns are up to date."
	@echo

WeylScal4.out: WeylScal4.m
	rm -rf WeylScal4
	./runmath.sh $^
	grep --silent 'Thorn ./WeylScal4 created successfully' WeylScal4.out
	for thorn in WeylScal4; do								  \
		./copy-if-changed.sh $$thorn/configuration.ccl ../../$$thorn/configuration.ccl && \
		./copy-if-changed.sh $$thorn/interface.ccl     ../../$$thorn/interface.ccl     && \
		./copy-if-changed.sh $$thorn/param.ccl         ../../$$thorn/param.ccl         && \
		./copy-if-changed.sh $$thorn/schedule.ccl      ../../$$thorn/schedule.ccl      && \
		./copy-if-changed.sh $$thorn/src               ../../$$thorn/src;		  \
	done

clean:
	rm -rf WeylScal4
	rm -f WeylScal4.out WeylScal4.err

.PHONY: all clean