-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 598 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 598 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SWIFT ?= swift
.PHONY: build test app package install-package install-local clean
build:
$(SWIFT) build
test:
$(SWIFT) run DevStackSmokeTests
app:
./Scripts/build-app.sh
package:
./Scripts/package-release.sh
install-package:
@PACKAGE_PATH=$$(ls -1t "$(PWD)/dist"/DevStackMenu-*.pkg 2>/dev/null | head -n 1); \
if [ -z "$$PACKAGE_PATH" ]; then \
echo "No package found. Run \`make package\` first."; \
exit 1; \
fi; \
sudo installer -pkg "$$PACKAGE_PATH" -target /
check: build test package
install-local:
./Scripts/install-local.sh
clean:
$(SWIFT) package clean
rm -rf dist