summaryrefslogtreecommitdiff
path: root/Makefile
blob: a9cb886ba32fb8b681fab20ce8d8eaa850c441f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PREFIX=/usr
CONFDIR=/etc

.DEFAULT_GOAL := build

build:
	@./build.shmk build

install-config:
	mkdir -p $(DESTDIR)${CONFDIR}/xipkg.d/
	cp default.conf $(DESTDIR)${CONFDIR}/xipkg.d/
	cp xipkg.conf $(DESTDIR)${CONFDIR}/xipkg.conf


install: build install-config
	@./build.shmk install
	ln -sf xi ${DESTDIR}${PREFIX}/bin/xipkg

clean:
	@./build.shmk clean