You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
697 B
38 lines
697 B
#------------------------------------------------------------------------------# |
|
|
|
PROGRAM := "App" |
|
|
|
#------------------------------------------------------------------------------# |
|
|
|
.PHONY: all debug build build-release run migrate revert clean clean-all test |
|
|
|
all: build |
|
|
|
build: |
|
@ swift build |
|
|
|
build-release: |
|
@ swift build --configuration release |
|
|
|
run: |
|
@ swift run $(PROGRAM) --auto-migrate |
|
|
|
migrate: |
|
@ swift run $(PROGRAM) migrate --auto-migrate |
|
|
|
revert: |
|
@ swift run $(PROGRAM) migrate --auto-revert |
|
|
|
routes: |
|
@ swift run $(PROGRAM) routes |
|
|
|
clean: |
|
@- echo "Cleaning packages.." ; \ |
|
swift package clean |
|
|
|
clean-all: |
|
@- echo "Cleaning project.." ; \ |
|
rm -rf ./.build |
|
|
|
test: |
|
@ swift test
|
|
|