-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (36 loc) · 1.14 KB
/
Makefile
File metadata and controls
38 lines (36 loc) · 1.14 KB
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
# Makefile for PanDefenseProject
default:
@ echo 'Building PanDefenseProject...'
@ mkdir build/
@ echo 'Building pdp Tool...'
@ cd pdp_tool; cargo build --release
@ echo 'Coping files...'
@ cp pdp_tool/target/release/pdp_tool build/
@ cp institute_list.conf build/
@ cp institute_list.csv build/
@ cp institute_list.json build/
@ cp institute_list.schema.json build/
@ cp README.md build/
@ cp LICENSE build/
@ echo 'Making an compressed tarball...'
@ cd build; tar -caf ../pdp-with-tool-`uname -m`-`uname -s | tr A-Z a-z`-`date +%Y-%m-%d`.tar.zst *
@ echo 'Done!'
text-only:
@ echo 'Building PanDefenseProject...'
@ mkdir build/
@ echo 'Coping files...'
@ cp institute_list.conf build/
@ cp institute_list.csv build/
@ cp institute_list.json build/
@ cp institute_list.schema.json build/
@ cp README.md build/
@ cp LICENSE build/
@ echo 'Making an compressed tarball...'
@ cd build; tar -caf ../pdp-text-only-`date +%Y-%m-%d`.tar.zst *
@ echo 'Done!'
clean:
@ echo 'Do some cargo clean...'
@ cd pdp_tool; cargo clean
@ echo 'Will exec "rm build/ -rIv" next...'
@ rm build/ -rIv
@ echo 'Tarballs built before will not be removed.'