summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7a70af9356759c5c6f43b166bd12230a04cc78ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 build

clean: shmk0
	@rm -r dist
	@rm -r shmk
	@./build.shmk clean

check: build
	@./build.shmk check

install: build
	@./build.shmk install