blob: e19acbc5ebd0799a64882f43c73435df5db61744 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
XI_BINARY=bin/xi
SOURCE=src
xi: src/xi.py
mkdir -p bin
cd src && zip -r xi.zip *
echo '#!/usr/bin/env python' | cat - src/xi.zip > ${XI_BINARY}
rm src/xi.zip
chmod +x ${XI_BINARY}
install: clean xi xipkg.conf default.conf bin/xi
mkdir -p $(DESTDIR)/etc/xipkg.d/
mkdir -p $(DESTDIR)/usr/bin
cp default.conf $(DESTDIR)/etc/xipkg.d/
cp xipkg.conf $(DESTDIR)/etc/xipkg.conf
rm -f $(DESTDIR)/usr/bin/xi
cp bin/xi $(DESTDIR)/usr/bin/xipkg
ln -s /usr/bin/xipkg $(DESTDIR)/usr/bin/xi
clean:
rm -rf bin
|