-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (31 loc) · 809 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
EXECUTABLE=mobsink
INSTDIR=/usr/bin
SHAREDIR=/usr/share
RESDIR=${SHAREDIR}/mobsink
DESKTOPDIR=${SHAREDIR}/applications
ifneq (${BUILD}, Debug)
BUILD=Release
endif
all:
@echo 'Making a ${BUILD} build...'
cd ${BUILD} ; make
@echo 'Done! Run "make install" to install MobSink.'
clean:
@echo 'Cleaning ${BUILD} build...'
cd ${BUILD} ; make clean
@echo 'Done!'
install:
@echo 'Installing a ${BUILD} build...'
mkdir -p ${RESDIR}/icons
mkdir -p ${RESDIR}/png
cp -a res/ico/* ${RESDIR}/icons/
cp -a res/png/* ${RESDIR}/png/
cp ${BUILD}/${EXECUTABLE} ${INSTDIR}/
cp mobsink.desktop ${DESKTOPDIR}/
@echo 'Done! MobSink installed in ${INSTDIR}/${EXECUTABLE}'
uninstall:
@echo 'Uninstalling...'
rm -rf ${RESDIR}
rm -rf ${DESKTOPDIR}/mobsink.desktop
rm -rf ${INSTDIR}/${EXECUTABLE}
@echo 'Done!'