forked from KSP-CKAN/CKAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (35 loc) · 1.12 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
# Are you working on the command line?
# Do you love unix tools?
# Is your name Travis?
# Then rejoice! You can type 'make test' to build and test!
TARGET=Debug
CKAN := ckan.exe
NETKAN := netkan.exe
TESTS := build/Tests/bin/$(TARGET)/Tests.dll
CKAN_DYN := build/CmdLine/bin/$(TARGET)/CmdLine.exe build/CmdLine/bin/$(TARGET)/CKAN-GUI.exe $(shell find ./build/CmdLine/bin/Debug/ -name "*.dll")
NETKAN_DYN := build/NetKAN/bin/$(TARGET)/NetKAN.exe $(shell find ./build/NetKAN/bin/Debug/ -name "*.dll")
CKAN_SOURCE := $(shell find ./CKAN/CKAN -name "*.cs")
NETKAN_SOURCE := $(shell find ./CKAN/NetKAN -name "*.cs")
TESTS_SOURCE := $(shell find ./CKAN/Tests -name "*.cs")
STATIC := $(CKAN) $(NETKAN) $(TESTS)
DYNAMIC := $(CKAN_DYN) $(NETKAN_DYN)
all: static
build: static
static: $(STATIC)
dynamic: $(DYNAMIC)
test: static
nunit-console --exclude=FlakyNetwork build/Tests/bin/Debug/Tests.dll
prove
$(CKAN): $(CKAN_DYN)
bin/build
$(CKAN_DYN): $(CKAN_SOURCE)
bin/build
$(NETKAN): $(NETKAN_DYN)
bin/build
$(NETKAN_DYN): $(NETKAN_SOURCE)
bin/build
$(TESTS): $(TESTS_SOURCE)
bin/build
clean:
rm $(STATIC) $(DYNAMIC)
rm -r build