-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (22 loc) · 791 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
TEMPORARY_FOLDER?=/tmp/IconHUD.dst
PREFIX?=/usr/local
XCODEFLAGS=-project 'iconhud.xcodeproj' -scheme 'iconhud' DSTROOT=$(TEMPORARY_FOLDER)
BINARIES_FOLDER=/usr/local/bin
VERSION_STRING=$(shell git describe --abbrev=0 --tags)
.PHONY: all clean install test uninstall
all:
xcodebuild $(XCODEFLAGS) build
test: clean
xcodebuild $(XCODEFLAGS) -configuration Release ENABLE_TESTABILITY=YES test
clean:
rm -rf "$(TEMPORARY_FOLDER)"
xcodebuild $(XCODEFLAGS) clean
install: installables
cp -f "$(TEMPORARY_FOLDER)/usr/local/bin/iconhud" "$(BINARIES_FOLDER)"
uninstall:
rm -f "$(BINARIES_FOLDER)/iconhud"
installables: clean
xcodebuild install $(XCODEFLAGS)
prefix_install: installables
mkdir -p "$(PREFIX)/bin"
cp -f "$(TEMPORARY_FOLDER)/usr/local/bin/iconhud" "$(PREFIX)/bin/"