-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (35 loc) · 975 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
APP=gnusocial
VERSION='1.2.0'
RELEASE='beta3'
ARCH_TYPE='all'
PREFIX?=/etc
all:
debug:
sync:
./upstream-to-debian.sh
source:
tar -cvf ../${APP}_${VERSION}.orig.tar ../${APP}-${VERSION} --exclude-vcs
gzip -f9n ../${APP}_${VERSION}.orig.tar
install:
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/${APP}
cp -r src/* ${DESTDIR}${PREFIX}/share/${APP}
cp -r webservers ${DESTDIR}${PREFIX}/share/${APP}
uninstall:
rm -rf ${PREFIX}/share/${APP}
if [ -L /etc/nginx/sites-enabled/${APP} ]; then \
rm -f /etc/nginx/sites-enabled/${APP}; \
fi
if [ -f /etc/nginx/sites-available/${APP} ]; then \
rm /etc/nginx/sites-available/${APP}; \
fi
if [ -d /etc/apache2 ]; then \
a2dissite ${APP}; \
rm /etc/apache2/sites-available/${APP}; \
fi
if [ -d /var/www/${APP} ]; then \
rm /var/www/${APP}; \
fi
clean:
rm -f \#* \.#* debian/*.substvars debian/*.log debian/gnusocial*
rm -rf deb.* debian/${APP}
rm -f ../${APP}*.deb ../${APP}*.changes ../${APP}*.asc ../${APP}*.dsc