Modern Apps git

← xtool.git

Add make clean (#71)

Commit
73f42d9de212f21801c7fa1c424c953f430d0e5f
Author
Kabir Oberai <[email protected]>
When
2025-05-21 12:43 UTC (1 year ago)
Parents
da745aa

Diff

Makefile
diff --git a/Makefile b/Makefileindex da5d26d..826b7ed 100644--- a/Makefile+++ b/Makefile@@ -32,11 +32,25 @@ else 	@+$(MAKE) linux endif +.PHONY: clean+# clean build artifacts+clean:+ifeq ($(IS_MAC),1)+	@+$(MAKE) mac-clean+else+	@+$(MAKE) linux-clean+endif+ .PHONY: linux # dev build for Linux linux: 	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 Linux linux-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)