diff options
| author | Ben Beltran <ben@nsovocal.com> | 2017-05-18 22:44:41 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2017-05-18 22:44:41 -0500 |
| commit | 169297c8e8464ca0cf600e9e426f11d170ee169d (patch) | |
| tree | d50e0a0fdbd0f4fc89a6a5b93102e8c2bf255224 | |
| parent | 47f1de79ed1d0007dbba84dc3d511528c7fed3f0 (diff) | |
Include makefile for easier building
| -rw-r--r-- | Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..34eec3a --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +configuration = debug +build_path = .build + +# These are used to rename the executable to lrc without renaming the package +source_binary_name = lyricli +target_binary_name = lrc +install_path = /usr/local/bin +source_binary_path = $(build_path)/$(configuration)/$(source_binary_name) +install_binary_path = $(install_path)/$(target_binary_name) + +# Default to release configuration on install +install: configuration = release + +default: build + +build: + swift build --build-path $(build_path) --configuration $(configuration) + +install: build + cp $(source_binary_path) $(install_binary_path) + +test: build + swift test + +clean: + swift build --clean + +.PHONY: build test clean |