Files
XcodeGen/Makefile
T
Keith Smiley 98f89ee758 Make build a PHONY task
This solves the issue where if someone is generating a xcodeproj to work
on XcodeGen, and their build directories are local, this command would
assume that it should only run if something in that directory is
changed, which isn't the case, we want it to run all the time and for
swiftpm to decide if something has changed.
2017-10-18 08:58:28 -07:00

29 lines
718 B
Makefile

TOOL_NAME = XcodeGen
VERSION = 1.2.0
PREFIX = /usr/local
INSTALL_PATH = $(PREFIX)/bin/$(TOOL_NAME)
SHARE_PATH = $(PREFIX)/share/$(TOOL_NAME)
BUILD_PATH = .build/release/$(TOOL_NAME)
CURRENT_PATH = $(PWD)
TAR_FILENAME = $(TOOL_NAME)-$(VERSION).tar.gz
install: build
mkdir -p $(PREFIX)/bin
cp -f $(BUILD_PATH) $(INSTALL_PATH)
mkdir -p $(SHARE_PATH)
cp -R $(CURRENT_PATH)/SettingPresets $(SHARE_PATH)/SettingPresets
.PHONY: build
build:
swift build --disable-sandbox -c release -Xswiftc -static-stdlib
uninstall:
rm -f $(INSTALL_PATH)
rm -rf $(SHARE_PATH)
get_sha:
wget https://github.com/yonaskolb/$(TOOL_NAME)/archive/$(VERSION).tar.gz -O $(TAR_FILENAME)
shasum -a 256 $(TAR_FILENAME)
rm $(TAR_FILENAME)