summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0829535945b08fe2aff6b370165445cc0b446277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
DESTDIR=
PREFIX=/usr
.DEFAULT_GOAL := build

export PATH := .:$(PATH)

shmk0:
	@echo shmk stage0
	@install -m755 src/util/shmk.sh shmk

bootstrap: shmk0
	@echo shmk stage1
	@./shmk.shmk build
	@install -m755 dist/shmk shmk

build: bootstrap
	@echo all xiutils
	@./build.shmk

clean:
	@rm -r dist
	@rm -r shmk