summaryrefslogtreecommitdiff
path: root/Makefile
blob: c9da1b2dfaf292ac5d37a3c787a8d9790d72f1ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SOURCE=src

PREFIX=/usr
CONFDIR=/etc

install: install-config
	mkdir -p ${DESTDIR}${PREFIX}/bin
	mkdir -p ${DESTDIR}${PREFIX}/lib/xipkg
	install -m755 ${SOURCE}/*.sh ${DESTDIR}${PREFIX}/lib/xipkg/
	install -m755 ${SOURCE}/xi.sh ${DESTDIR}${PREFIX}/bin/xipkg
	ln -s xipkg ${DESTDIR}${PREFIX}/bin/xi
	git describe --always > ${DESTDIR}${PREFIX}/lib/xipkg/VERSION

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