-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 873 Bytes
/
Makefile
File metadata and controls
44 lines (31 loc) · 873 Bytes
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
prefix ?= /usr/local
bindir = $(prefix)/bin
libdir = $(prefix)/lib
run:
@swift run
build:
swift build -c release --disable-sandbox
install: build
install ".build/release/declutter" "$(bindir)"
uninstall:
rm -rf "$(bindir)/declutter"
clean:
rm -rf .build
test:
swift test
create_test_data: clean_test_data
mkdir -p ./test_data/A/
echo "a" > ./test_data/A/a.txt
echo "b" > ./test_data/A/b.txt
mkdir -p ./test_data/exact_copy_of_A/
echo "a" > ./test_data/exact_copy_of_A/w.txt
echo "b" > ./test_data/exact_copy_of_A/z.txt
mkdir -p ./test_data/subset_of_A/
echo "a" > ./test_data/subset_of_A/a.txt
mkdir -p ./test_data/superset_of_A/
echo "a" > ./test_data/superset_of_A/a.txt
echo "b" > ./test_data/superset_of_A/bee.txt
echo "c" > ./test_data/superset_of_A/c.txt
clean_test_data:
rm -rf ./test_data/
.PHONY: build install uninstall clean