Trigger rebuild on info change as well as main src
[tt.git] / Makefile
... / ...
CommitLineData
1PKG_NAME := tt
2EXE_FILE := $(PKG_NAME)
3SRC_FILE := $(EXE_FILE).rkt
4PREFIX := $(HOME)
5
6.PHONY: build
7build: $(EXE_FILE)
8
9$(EXE_FILE): $(SRC_FILE) info.rkt
10 raco exe -o $@ $<
11
12.PHONY: install
13install: $(EXE_FILE)
14 mkdir -p $(PREFIX)/bin/
15 cp $(EXE_FILE) $(PREFIX)/bin/
16
17.PHONY: test
18test:
19 raco test ./$(SRC_FILE)
20
21.PHONY: remove
22remove:
23 raco pkg remove $(PKG_NAME)
24
25.PHONY: clean
26clean:
27 rm -f $(EXE_FILE)
28
29### dev helpers ###
30# scmindent.rkt : https://github.com/ds26gte/scmindent
31# sponge : https://joeyh.name/code/moreutils
32.PHONY: indent
33indent:
34 scmindent.rkt < $(SRC_FILE) | sponge $(SRC_FILE)
This page took 0.022957 seconds and 4 git commands to generate.