Files
ipatool/Makefile
T
Majd Alfhaily 83515013cd Add linter (#84)
* Add linter

* Fix building universal binary with SwiftPM

* Run unit and integration tests on main branch
2022-06-16 22:21:58 +00:00

23 lines
514 B
Makefile

prefix ?= /usr/local
bindir = $(prefix)/bin
lint:
swiftlint lint --config .swiftlint.yml --path Sources/ Tests/m Plugins/
build: lint
swift build -c release --arch arm64
swift build -c release --arch x86_64
lipo -create -output .build/ipatool .build/arm64-apple-macosx/release/ipatool .build/x86_64-apple-macosx/release/ipatool
install: build
install -d "$(bindir)"
install ".build/ipatool" "$(bindir)"
uninstall:
rm -rf "$(bindir)/ipatool"
clean:
rm -rf .build
.PHONY: build install uninstall clean