XcodeGen/Makefile

28 lines
704 B
Makefile
Raw Normal View History

2017-09-23 18:22:22 +03:00
TOOL_NAME = XcodeGen
VERSION = 1.1.0
2017-07-28 15:13:41 +03:00
2017-09-23 18:22:22 +03:00
PREFIX = /usr/local
INSTALL_PATH = $(PREFIX)/bin/$(TOOL_NAME)
SHARE_PATH = $(PREFIX)/share/$(TOOL_NAME)
2017-09-18 23:47:52 +03:00
BUILD_PATH = .build/release/$(TOOL_NAME)
2017-07-28 14:55:36 +03:00
CURRENT_PATH = $(PWD)
2017-09-23 18:22:22 +03:00
TAR_FILENAME = $(TOOL_NAME)-$(VERSION).tar.gz
2017-07-28 14:55:36 +03:00
2017-09-23 18:22:22 +03:00
install: build
mkdir -p $(PREFIX)/bin
2017-09-18 23:47:52 +03:00
cp -f $(BUILD_PATH) $(INSTALL_PATH)
2017-08-24 02:22:51 +03:00
mkdir -p $(SHARE_PATH)
cp -R $(CURRENT_PATH)/SettingPresets $(SHARE_PATH)/SettingPresets
2017-09-23 18:22:22 +03:00
build:
swift build --disable-sandbox -c release -Xswiftc -static-stdlib
2017-07-28 14:55:36 +03:00
uninstall:
2017-09-18 23:47:52 +03:00
rm -f $(INSTALL_PATH)
2017-09-23 18:22:22 +03:00
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)