-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
71 lines (57 loc) · 1.86 KB
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#-----------------------------------------------------
# The makefile calles for another makefile within Source_files directory
# which compiles and makes an executable called XTANT.x
# This file was written by N.Medvedev
# in 2021-2024
#-----------------------------------------------------
# Define a timestamp function
# To pass variables into the next make-file:
export
# Call makefile within the Source_files directory:
subsystem:
@echo "**********************************************"
@echo "Starting compilation at"
@echo $(shell date)
@echo "**********************************************"
cd Source_files && $(MAKE)
# Copy created executable into the parent directory:
scp -r Source_files/*.x .
# Delete executable from the Source_files directory:
rm -r Source_files/*.x
@echo "**********************************************"
@echo "Finished compilation at"
@echo $(shell date)
@echo "**********************************************"
# Compile post-processing subroutines:
add:
cd \!XTANT_ANALYSIS_SUBROUTINES && $(MAKE)
# Clean all compiled files:
clean:
rm -f Source_files/*.o
rm -f Source_files/*.mod
rm -f Source_files/*.obj
rm -f Source_files/*.yaml
rm -f Source_files/*.optrpt
rm -f Source_files/*.x
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.o
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.mod
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.obj
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.yaml
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.optrpt
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.x
# rm -f *.x
# Clean all results:
cleanresults:
rm -f OUTPUT_*
# Clean all compiled files and the results:
veryclean:
rm -f Source_files/*.o
rm -f Source_files/*.mod
rm -f Source_files/*.obj
rm -f Source_files/*.x
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.o
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.mod
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.obj
rm -f \!XTANT_ANALYSIS_SUBROUTINES/*.x
rm -f *.x
rm -f OUTPUT_*