-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (44 loc) · 991 Bytes
/
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
.PHONY: setup
.PHONY: lab1
.PHONY: lab2
.PHONY: lab3
.PHONY: lab3File
.PHONY: lab4
setup:
@sed -i.bu 's','\/Users\/mcneip01\/uni\/CI312\/',"$$PWD\/",'g' libraries/Paths.h
lab1: setup
c++ lab1/src/HelloWorld.cpp -o helloWorld
./helloWorld 3 4
lab2: setup
mkdir -p ./lab2/build
cmake -B./lab2/build -H./lab2/
make -C ./lab2/build
./lab2/triangle
lab3: setup
mkdir -p ./lab3/build
cmake -B./lab3/build -H./lab3/
make -C ./lab3/build
./lab3/pyramid
lab3File: setup
mkdir -p ./lab3/build
cmake -B./lab3/build -H./lab3/
make -C ./lab3/build
./lab3/pyramid 1
lab4: setup
mkdir -p ./lab4/build
cmake -B./lab4/build -H./lab4/
make -C ./lab4/build
./lab4/pyramid
lab5: setup
mkdir -p ./lab5/build
cmake -B./lab5/build -H./lab5/
make -C ./lab5/build
./lab5/pyramid
clean:
rm -rf ./**/build/ && \
rm -rf ./libraries/Paths.h.bu && \
rm -rf ./helloWorld && \
rm -rf ./lab2/triangle && \
rm -rf ./lab3/pyramid && \
rm -rf ./lab4/pyramid && \
rm -rf ./lab5/pyramid