-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
36 lines (30 loc) · 881 Bytes
/
Makefile
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
32
33
34
35
36
VERSION=0.2
PREFIX?=/usr
DESTDIR?=
all:
symstall install:
mkdir -p ${DESTDIR}${PREFIX}/bin
ln -fs $${PWD}/slpm ${DESTDIR}${PREFIX}/bin/slpm
ln -fs $${PWD}/xlpm ${DESTDIR}${PREFIX}/bin/xlpm
ln -fs $${PWD}/slpm-genpkg ${DESTDIR}${PREFIX}/bin/slpm-genpkg
ln -fs $${PWD}/slpm-genimg ${DESTDIR}${PREFIX}/bin/slpm-genimg
uninstall deinstall:
rm -f ${DESTDIR}${PREFIX}/bin/slpm
rm -f ${DESTDIR}${PREFIX}/bin/slpm-genpkg
rm -f ${DESTDIR}${PREFIX}/bin/slpm-genimg
pull:
wget http://lolcathost.org/b/slpm-${VERSION}.tar.gz
tar xzvf slpm-${VERSION}.tar.gz
cp slpm-${VERSION}/Makefile .
cp slpm-${VERSION}/slpm .
cp slpm-${VERSION}/pkg/* pkg
rm -rf slpm-${VERSION}*
push:
${MAKE} dist
pub slpm-${VERSION}.tar.gz
dist:
rm -rf slpm-${VERSION}
hg clone . slpm-${VERSION}
rm -rf slpm-${VERSION}/.hg
tar czvf slpm-${VERSION}.tar.gz slpm-${VERSION}
rm -rf slpm-${VERSION}