-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 930 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
# Targets:
# all Test and build the mod. Default target.
# clean Remove all traces of previous builds.
# build Just build the mod.
# test Build the mod and the example.
# debug Build the mod and example in debug mode.
# install Build the mod and install it.
# uninstall Remove the installed mod.
# dist Build the mod and zip the output.
SHELL = /bin/sh
NAME = KeybindLib
BUILD = mdtool build src/$(NAME).sln
TARGET = build/target/$(NAME).dll
.PHONY: all clean build test install uninstall
all: test build
clean:
$(BUILD) -c:Debug -t:Clean
$(BUILD) -c:Testing -t:Clean
$(BUILD) -c:Release -t:Clean
build:
$(BUILD) -c:Release
test:
$(BUILD) -c:Testing -t:Clean
$(BUILD) -c:Testing
debug:
$(BUILD) -c:Debug
install: build
cp -ft "$(shell cat "build/mods-dir")" $(TARGET)
uninstall:
rm -f -- "$(shell cat "build/mods-dir")/$(NAME).dll" $(TARGET)
dist: build
zip -r build-target.zip build/target/*