Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.
Add make clean (#71)
Kabir Oberai73f42d9de212
diff --git a/Makefile b/Makefileindex da5d26d..826b7ed 100644--- a/Makefile+++ b/Makefile@@ -32,11 +32,25 @@ else@+$(MAKE) linuxendif+.PHONY: clean+# clean build artifacts+clean:+ifeq ($(IS_MAC),1)+ @+$(MAKE) mac-clean+else+ @+$(MAKE) linux-clean+endif+.PHONY: linux# dev build for Linuxlinux:swift build --product xtool $(ALL_SWIFTFLAGS)+.PHONY: linux-clean+# clean build artifacts for Linux+linux-clean:+ rm -rf .build+.PHONY: linux-dist# dist build for Linuxlinux-dist:@@ -47,14 +61,20 @@ linux-dist:mac: project@rm -rf macOS/Build/XcodeInstall@set -o pipefail && cd macOS && \- xcodebuild build install \+ xcodebuild install \-skipMacroValidation -skipPackagePluginValidation \-scheme XToolMac -destination generic/platform=macOS \+ -derivedDataPath Build/DerivedData \DSTROOT="$$PWD"/Build/XcodeInstall INSTALL_PATH=/ \$(ALL_XCFLAGS) $(XC_FORMAT)@ln -fs XcodeInstall/xtool.app/Contents/Resources/bin/xtool macOS/Build/xtool@echo "Output: ./macOS/Build/xtool"+.PHONY: mac-clean+# clean build artifacts for macOS+mac-clean:+ rm -rf macOS/Build+.PHONY: mac-dist# dist build for macOS# requires a few secrets in the env (see .github/workflows/release.yml)