aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: accab263ebc81e19239b994df2fdaa1a31aee6b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PROGRAM = sprout
DESTDIR ?= /usr/local/bin
LOCALDIR = ~/.local/bin

.PHONY: install
install: build
	chmod ugo+x ./$(PROGRAM)
	mv ./$(PROGRAM) $(DESTDIR)/$(PROGRAM)

.PHONY: uninstall
uninstall: $(DESTDIR)/$(PROGRAM)
	rm $(DESTDIR)/$(PROGRAM)

build: $(PROGRAM).rkt
	raco exe -o ./$(PROGRAM) $(PROGRAM).rkt

.PHONY: clean
clean: ./$(PROGRAM)
	rm ./$(PROGRAM)