Skip to content

Commit 41302c5

Browse files
benkbbentxt
andauthored
Simple makefile (#11)
- Simple Makefile for build stuff in a more declarative way - Phony target in makefile and adding .*.swp file to gitignore - Adding dependencies Co-authored-by: ben.txt <[email protected]>
1 parent d15bb09 commit 41302c5

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,8 @@ Carthage/Build
5252
# macOS
5353
.DS_Store
5454

55+
# edit
56+
.*.swp
57+
5558
# ObjectHub defaults
5659
SCRATCH

Makefile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.PHONY: clean run debug release clean
2+
3+
all: run
4+
5+
run: debug
6+
.build/debug/LispKitRepl -d LispKit
7+
8+
debug:
9+
swift build -Xswiftc "-D" -Xswiftc "SPM"
10+
11+
release:
12+
swift build -c release -Xswiftc "-D" -Xswiftc "SPM"
13+
14+
clean:
15+
rm -rf .build

0 commit comments

Comments
 (0)