123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- #! /usr/bin/make -f
- #* #ident "$Id: $"
- #* @author: rzr@gna.org - rev: $Author: rzr$
- #* Copyright: See README file that comes with this distribution
- #*****************************************************************************
- default: help
- package?=redak
- #version?=0.0.0
- version?=0.6.0
- #TODO: upgrade with yours
- #qtcreator?=/usr/local/opt/QtSDK/QtCreator/bin/qtcreator
- qtcreator?=qtcreator
- help:
- @echo "edit"
- edit: clean
- ${qtcreator} *.pro
- rule/android/edit: clean
- /usr/local/opt/necessitas/QtCreator/bin/necessitas \
- *.pro
- #TODO
- rule/android/configure:
- /usr/local/opt/android-sdk-linux/tools/android update project -t android-7 -p android
- clean:
- rm -rf ../redak-build-* *.o moc_*.cpp *~ Makefile
- -cat 'debian/clean' | while read t ; do rm -rv "$${t}" ; done
- distclean: clean
- cat debian/clean.txt | while read t ; do rm -rfv "$${t}" ; done
- rm -rvf *.user *.zip *.sis *~ *.so *.tmp
- rm -rvf obj ./android/bin android/assets/qml/redak android/libs/armeabi
- find . -iname "*~" -exec rm -v '{}' \;
- find . -iname "*.class" -exec rm -v '{}' \;
- find . -iname "*.apk" -exec rm -v '{}' \;
- chmod a-rx *.cpp *.h *.pro *.png *.svg *.spec *.txt
- chmod a-rx COPYING
- chmod -Rv a+rX .
- rm -fv *.pkg
- rm -fv *.autosave
- dist: distclean COPYING release rule/local/release
- rule/diff/common: qml/${package}/meego qml/${package}/common
- meld $^
- COPYING: /usr/share/common-licenses/GPL-3
- cp -a $< $@
- debian/diff: debian qtc_packaging/debian_harmattan
- meld $^
- diff: qml/${package}/meego qml/${package}/symbian
- meld $^
- install:
- -ls ../${package}*/*.sis
- -ls ../redak-build-remote/redak_qt-4_7_4_symbianBelle.sis
- ln -fs $(pwd)/../*/*.sis ~/public_html/pub/file/
- deploy:
- find ${CURDIR}-build-remote/ -type f -iname "*.sis" \
- | while read t ; do ln -fs $${t} ~/public_html/pub/file/ ; done
- all:
- qmake-qt4
- make CXXFLAGS=-fPIC
- run: qml/${package}/common/main.qml all
- qmlviewer -maximized -P ${CURDIR}/ $<
- run/py: ${package}.py
- ${<D}/${<F}
- test:distclean all run clean
- debuild:distclean
- fakeroot ./debian/rules binary
- dpkg --contents ../*.deb
- dep/desktop:
- ${sudo} apt-get install \
- libqt4-declarative-folderlistmodel libqt4-dev
- dep/harmattan:
- ${sudo} apt-get install \
- applauncherd-dev pkg-config make
- #%: rule/local/%
- release: distclean rule/local/release
- rule/version:
- # echo '${version}' | tee -a VERSION.txt
- sed -e "s/^var g_version.*/var g_version = \"${version}\" ;/g" -i 'qml/redak/common/script.js'
- sed -e "s/^[ ]*VERSION.*/VERSION=${version}/g" -i redak.pro
- sed -e "s/^Version:.*/Version: ${version}/g" -i redak.spec
- echo "# TODO: check debian/changelog *.changes *.pkg"
- check/release:
- @echo "# check version in script.js debian/changelog "
- grep -r -i 'g_version' qml/redak/common/script.js
- grep 'Version:' ${package}.spec
- rule/local/%:
- echo "todo: $@"
- redak64.png: redak.svg mk-local.mk
- convert -resize 64x64 $< $@
- convert/%: redak.svg mk-local.mk
- convert -resize ${@F}x${@F} $< tmp-${@F}.png
- icon.txt.tmp: redak.svg mk-local.mk
- convert -resize 26x26 $< tmp.png
- base64 < tmp.png | tr -d '\n' > $@
- wc $@
- rm -f tmp.png
- # custom rules
- rule/build/platform/symbian: qml
- grep -re "import Qt.labs.folderlistmodel 1.1" qml | grep -ve '[^:]*://' || echo "ok"
- @echo "todo: deploy ovi wizard"
- rule/install/platform/symbian: qml
- grep DEPLOY_TARGET bld.inf
- md5sum *.sis | tee -a README.txt
- @echo "todo: upload: redak_installer_unsigned.sis"
- @echo "todo: https://publish.nokia.com/download_items/show/475539#item"
- -include ~/bin/mk-local.mk
|