freedomboneeee/Makefile

153 lines
7.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:
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}/etc/freedombone
cp -r image_build/* ${DESTDIR}/etc/freedombone
2015-01-16 22:45:28 +01:00
install -m 755 src/${APP} ${DESTDIR}${PREFIX}/bin
2015-08-29 17:26:51 +02:00
install -m 755 src/zeronetavahi ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-keydrive ${DESTDIR}${PREFIX}/bin
2015-06-30 20:27:25 +02:00
install -m 755 src/${APP}-splitkey ${DESTDIR}${PREFIX}/bin
2015-06-30 22:45:18 +02:00
install -m 755 src/${APP}-recoverkey ${DESTDIR}${PREFIX}/bin
2015-01-16 22:45:28 +01:00
install -m 755 src/${APP}-prep ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-client ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-remote ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-config ${DESTDIR}${PREFIX}/bin
2015-02-01 15:57:59 +01:00
install -m 755 src/${APP}-sec ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-addcert ${DESTDIR}${PREFIX}/bin
2015-10-26 15:25:58 +01:00
install -m 755 src/${APP}-adduser ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-clientcert ${DESTDIR}${PREFIX}/bin
2015-03-31 22:58:42 +02:00
install -m 755 src/${APP}-addlist ${DESTDIR}${PREFIX}/bin
2015-03-31 23:29:03 +02:00
install -m 755 src/${APP}-addemail ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-renew-cert ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-rmlist ${DESTDIR}${PREFIX}/bin
2015-04-04 00:59:08 +02:00
install -m 755 src/${APP}-rmemail ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-rmuser ${DESTDIR}${PREFIX}/bin
2015-04-04 12:05:08 +02:00
install -m 755 src/${APP}-ignore ${DESTDIR}${PREFIX}/bin
2015-04-04 12:25:25 +02:00
install -m 755 src/${APP}-unignore ${DESTDIR}${PREFIX}/bin
2015-04-05 14:38:01 +02:00
install -m 755 src/${APP}-addxmpp ${DESTDIR}${PREFIX}/bin
2015-04-05 14:43:33 +02:00
install -m 755 src/${APP}-rmxmpp ${DESTDIR}${PREFIX}/bin
2015-04-05 14:49:59 +02:00
install -m 755 src/${APP}-xmpp-pass ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-mesh ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-mesh ${DESTDIR}${PREFIX}/bin/mesh
2015-08-30 12:50:50 +02:00
install -m 755 src/${APP}-meshweb ${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
install -m 755 src/${APP}-controlpanel ${DESTDIR}${PREFIX}/bin/control
2015-10-31 23:55:09 +01:00
install -m 755 src/${APP}-logging ${DESTDIR}${PREFIX}/bin
2015-11-02 11:00:53 +01:00
install -m 755 src/${APP}-addsipuser ${DESTDIR}${PREFIX}/bin
2015-11-02 11:12:49 +01:00
install -m 755 src/${APP}-rmsipuser ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-sipfreeext ${DESTDIR}${PREFIX}/bin
2015-11-04 21:34:31 +01:00
install -m 755 src/${APP}-format ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-image* ${DESTDIR}${PREFIX}/bin
2015-01-16 22:14:53 +01:00
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-keydrive.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-06-30 20:27:25 +02:00
install -m 644 man/${APP}-splitkey.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-06-30 22:45:18 +02:00
install -m 644 man/${APP}-recoverkey.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-01-16 22:58:29 +01:00
install -m 644 man/${APP}-prep.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-01-24 20:54:53 +01:00
install -m 644 man/${APP}-client.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-remote.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-config.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-02-01 15:57:59 +01:00
install -m 644 man/${APP}-sec.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-addcert.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-10-26 15:25:58 +01:00
install -m 644 man/${APP}-adduser.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-clientcert.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-03-31 22:58:42 +02:00
install -m 644 man/${APP}-addlist.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-03-31 23:29:03 +02:00
install -m 644 man/${APP}-addemail.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-renew-cert.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-rmlist.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-04-04 00:59:08 +02:00
install -m 644 man/${APP}-rmemail.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-rmuser.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-04-04 12:05:08 +02:00
install -m 644 man/${APP}-ignore.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-04-04 12:25:25 +02:00
install -m 644 man/${APP}-unignore.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-04-05 14:38:01 +02:00
install -m 644 man/${APP}-addxmpp.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-04-05 14:43:33 +02:00
install -m 644 man/${APP}-rmxmpp.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-04-05 14:49:59 +02:00
install -m 644 man/${APP}-xmpp-pass.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-mesh.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-10-31 21:14:23 +01:00
install -m 644 man/${APP}-controlpanel.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-10-31 23:55:09 +01:00
install -m 644 man/${APP}-logging.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-11-02 11:12:49 +01:00
install -m 644 man/${APP}-addsipuser.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-rmsipuser.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-11-04 21:34:31 +01:00
install -m 644 man/${APP}-format.1.gz ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}-image.1.gz ${DESTDIR}${PREFIX}/share/man/man1
2015-01-16 22:14:53 +01:00
uninstall:
rm -f ${PREFIX}/share/man/man1/${APP}.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-keydrive.1.gz
2015-06-30 20:27:25 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-splitkey.1.gz
2015-06-30 22:45:18 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-recoverkey.1.gz
2015-01-16 22:58:29 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}-prep.1.gz
2015-01-24 20:54:53 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}-client.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-remote.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-config.1.gz
2015-02-01 15:57:59 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}-sec.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-clientcert.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-addcert.1.gz
2015-10-26 15:25:58 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}-adduser.1.gz
2015-03-31 22:58:42 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-addlist.1.gz
2015-03-31 23:29:03 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-addemail.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-renew-cert.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-rmlist.1.gz
2015-04-04 00:59:08 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-rmemail.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-rmuser.1.gz
2015-04-04 12:05:08 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-ignore.1.gz
2015-04-04 12:25:25 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-unignore.1.gz
2015-04-05 14:38:01 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-addxmpp.1.gz
2015-04-05 14:43:33 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-rmxmpp.1.gz
2015-04-05 14:49:59 +02:00
rm -f ${PREFIX}/share/man/man1/${APP}-xmpp-pass.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-mesh.1.gz
2015-10-31 21:14:23 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}-controlpanel.1.gz
2015-10-31 23:55:09 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}-logging.1.gz
2015-11-02 11:00:53 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}-addsipuser.1.gz
2015-11-02 11:12:49 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}-rmsipuser.1.gz
2015-11-04 21:34:31 +01:00
rm -f ${PREFIX}/share/man/man1/${APP}-format.1.gz
rm -f ${PREFIX}/share/man/man1/${APP}-image.1.gz
2015-01-16 22:14:53 +01:00
rm -rf ${PREFIX}/share/${APP}
rm -f ${PREFIX}/bin/${APP}
2015-08-29 17:26:51 +02:00
rm -f ${PREFIX}/bin/zeronetavahi
rm -f ${PREFIX}/bin/${APP}-keydrive
2015-06-30 20:27:25 +02:00
rm -f ${PREFIX}/bin/${APP}-splitkey
2015-06-30 22:45:18 +02:00
rm -f ${PREFIX}/bin/${APP}-recoverkey
2015-01-16 22:14:53 +01:00
rm -f ${PREFIX}/bin/${APP}-prep
rm -f ${PREFIX}/bin/${APP}-client
rm -f ${PREFIX}/bin/${APP}-remote
rm -f ${PREFIX}/bin/${APP}-config
2015-02-01 15:57:59 +01:00
rm -f ${PREFIX}/bin/${APP}-sec
rm -f ${PREFIX}/bin/${APP}-addcert
2015-10-26 15:25:58 +01:00
rm -f ${PREFIX}/bin/${APP}-adduser
rm -f ${PREFIX}/bin/${APP}-clientcert
2015-03-31 22:58:42 +02:00
rm -f ${PREFIX}/bin/${APP}-addlist
2015-03-31 23:29:03 +02:00
rm -f ${PREFIX}/bin/${APP}-addemail
rm -f ${PREFIX}/bin/${APP}-renew-cert
rm -f ${PREFIX}/bin/${APP}-rmlist
rm -f ${PREFIX}/bin/${APP}-rmuser
2015-04-04 12:05:08 +02:00
rm -f ${PREFIX}/bin/${APP}-ignore
2015-04-04 12:25:25 +02:00
rm -f ${PREFIX}/bin/${APP}-unignore
2015-04-05 14:38:01 +02:00
rm -f ${PREFIX}/bin/${APP}-addxmpp
2015-04-05 14:43:33 +02:00
rm -f ${PREFIX}/bin/${APP}-rmxmpp
2015-04-05 14:49:59 +02:00
rm -f ${PREFIX}/bin/${APP}-xmpp-pass
rm -f ${PREFIX}/bin/${APP}-mesh
rm -f ${PREFIX}/bin/mesh
2015-08-30 12:50:50 +02:00
rm -f ${PREFIX}/bin/${APP}-meshweb
rm -f ${PREFIX}/bin/meshweb
2015-10-31 21:14:23 +01:00
rm -f ${PREFIX}/bin/${APP}-controlpanel
2015-10-31 23:55:09 +01:00
rm -f ${PREFIX}/bin/${APP}-logging
2015-11-02 11:00:53 +01:00
rm -f ${PREFIX}/bin/${APP}-addsipuser
2015-11-02 11:12:49 +01:00
rm -f ${PREFIX}/bin/${APP}-rmsipuser
rm -f ${PREFIX}/bin/${APP}-sipfreeext
2015-11-04 21:34:31 +01:00
rm -f ${PREFIX}/bin/${APP}-format
rm -f ${PREFIX}/bin/${APP}-image*
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
rm -rf /etc/freedombone