Sha256: 56b211133ad652f26704e83e41258380d231619d794731cd9d9f926148c254fa

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

ifeq "$(PLATFORM)" ""
PLATFORM := $(shell uname)
endif

ifeq "$(PLATFORM)" "Darwin"
BUILDCOMMAND := "swift build -Xcc -fblocks -Xswiftc -I/usr/local/include -Xlinker -L/usr/local/lib"
else
BUILDCOMMAND := "swift build -Xcc -fblocks -Xlinker -rpath -Xlinker .build/debug"
endif

fetch:
	swift build --fetch
	find Packages/ -type d -name Tests | xargs rm -rf
clean:
	@echo --- Invoking swift build --clean
	swift build --clean
build: clean fetch
	@echo --- Building package
	"$(BUILDCOMMAND)"
test: build
	@echo --- Running tests
	swift test
run: build
	@echo --- Starting server
	.build/debug/StockServiceApp ./Sources/<%= application_name %>App/config.json

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minke-generator-swift-0.1.0 lib/generators/swift/scaffold/src/Makefile.erb