freedombone/Makefile

65 lines
2.6 KiB
Makefile
Raw Normal View History

2015-01-16 22:14:53 +01:00
APP=freedombone
2015-07-09 19:59:43 +02:00
VERSION=1.01
2015-01-16 22:14:53 +01:00
RELEASE=1
PREFIX?=/usr/local
all:
debug:
translations:
2015-12-09 10:20:54 +01:00
bash -c "./translate make"
rmtranslations:
bash -c "./translate remove"
2015-12-09 10:20:54 +01:00
alltranslations:
bash -c "./translate translations"
2015-01-16 22:14:53 +01:00
source:
tar -cvf ../${APP}_${VERSION}.orig.tar ../${APP}-${VERSION} --exclude-vcs
gzip -f9n ../${APP}_${VERSION}.orig.tar
install:
mkdir -p ${DESTDIR}${PREFIX}/bin
mkdir -p ${DESTDIR}/usr/share/${APP}/base
2016-07-06 21:06:57 +02:00
mkdir -p ${DESTDIR}/usr/share/${APP}/apps
2016-07-06 21:27:18 +02:00
mkdir -p ${DESTDIR}/usr/share/${APP}/utils
2016-04-19 12:21:35 +02:00
mkdir -p ${DESTDIR}/etc/${APP}
cp -r image_build/* ${DESTDIR}/etc/${APP}
2016-06-23 23:16:32 +02:00
install -m 755 img/backgrounds/${APP}_mesh_background.png ${DESTDIR}${PREFIX}/share
2015-11-22 21:38:26 +01:00
install -m 755 src/* ${DESTDIR}${PREFIX}/bin
2015-08-30 13:05:33 +02:00
install -m 755 src/${APP}-meshweb ${DESTDIR}${PREFIX}/bin/meshweb
2015-10-31 21:14:23 +01:00
install -m 755 src/${APP}-controlpanel ${DESTDIR}${PREFIX}/bin/control
2016-05-28 19:58:09 +02:00
install -m 755 src/${APP}-mesh-batman ${DESTDIR}${PREFIX}/bin/batman
2015-12-08 12:40:41 +01:00
install -m 755 src/${APP}-backup-local ${DESTDIR}${PREFIX}/bin/backup
2015-12-08 15:56:57 +01:00
install -m 755 src/${APP}-backup-local ${DESTDIR}${PREFIX}/bin/backup2friends
2015-12-08 13:29:01 +01:00
install -m 755 src/${APP}-restore-local ${DESTDIR}${PREFIX}/bin/restore
2015-12-08 17:03:06 +01:00
install -m 755 src/${APP}-restore-remote ${DESTDIR}${PREFIX}/bin/restorefromfriend
2016-07-06 21:39:47 +02:00
rm -f ${DESTDIR}/usr/share/${APP}/base/*
rm -f ${DESTDIR}/usr/share/${APP}/apps/*
rm -f ${DESTDIR}/usr/share/${APP}/utils/*
mv ${DESTDIR}${PREFIX}/bin/${APP}-base-* ${DESTDIR}/usr/share/${APP}/base
2016-07-06 21:06:57 +02:00
mv ${DESTDIR}${PREFIX}/bin/${APP}-app-* ${DESTDIR}/usr/share/${APP}/apps
2016-07-06 21:27:18 +02:00
mv ${DESTDIR}${PREFIX}/bin/${APP}-utils-* ${DESTDIR}/usr/share/${APP}/utils
2015-01-16 22:14:53 +01:00
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1
2015-11-22 21:38:26 +01:00
install -m 644 man/*.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-12-09 09:29:30 +01:00
install -m 644 man/${APP}-backup-local.1.gz ${DESTDIR}${PREFIX}/share/man/man1/backup.1.gz
install -m 644 man/${APP}-restore-local.1.gz ${DESTDIR}${PREFIX}/share/man/man1/restore.1.gz
2015-12-01 15:40:29 +01:00
bash -c "./translate install"
2015-01-16 22:14:53 +01:00
uninstall:
2016-06-23 23:16:32 +02:00
rm -f ${PREFIX}/share/${APP}_mesh_background.png
2015-12-09 09:29:30 +01:00
rm -f ${PREFIX}/share/man/man1/backup.1.gz
rm -f ${PREFIX}/share/man/man1/restore.1.gz
2015-11-22 21:38:26 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}*.1.gz
2015-01-16 22:14:53 +01:00
rm -rf ${PREFIX}/share/${APP}
rm -rf /usr/share/${APP}
2015-11-22 21:38:26 +01:00
rm -f ${PREFIX}/bin/${APP}*
2015-08-29 17:26:51 +02:00
rm -f ${PREFIX}/bin/zeronetavahi
2015-12-08 12:40:41 +01:00
rm -f ${PREFIX}/bin/backup
2015-12-08 15:56:57 +01:00
rm -f ${PREFIX}/bin/backup2friends
2015-12-08 13:29:01 +01:00
rm -f ${PREFIX}/bin/restore
2015-12-08 16:50:34 +01:00
rm -f ${PREFIX}/bin/restorefromfriend
2015-08-30 12:50:50 +02:00
rm -f ${PREFIX}/bin/meshweb
2016-05-28 19:58:09 +02:00
rm -f ${PREFIX}/bin/batman
2016-04-19 12:21:35 +02:00
rm -rf /etc/${APP}
2015-12-01 15:40:29 +01:00
bash -c "./translate uninstall"
2015-01-16 22:14:53 +01:00
clean:
rm -f \#* \.#* debian/*.substvars debian/*.log
rm -fr deb.* debian/${APP}
rm -f ../${APP}*.deb ../${APP}*.changes ../${APP}*.asc ../${APP}*.dsc