| 1 | include config.mk |
| 2 | |
| 3 | all clean user-install user-uninstall: |
| 4 | @cd src/ && ${MAKE} $@ |
| 5 | |
| 6 | install: |
| 7 | @cd src/ && ${MAKE} $@ |
| 8 | @${MAKE} doc-install help-install |
| 9 | |
| 10 | uninstall: doc-uninstall help-uninstall |
| 11 | @cd src/ && ${MAKE} $@ |
| 12 | |
| 13 | doc-install: |
| 14 | @echo installing documentation files to ${DESTDIR}${IRSSI_DOC}/irssi-xmpp |
| 15 | @install -d ${DESTDIR}${IRSSI_DOC}/irssi-xmpp |
| 16 | @cd docs/ && install -m 644 FAQ GENERAL MUC STARTUP XEP ${DESTDIR}${IRSSI_DOC}/irssi-xmpp |
| 17 | |
| 18 | doc-uninstall: |
| 19 | @echo uninstalling documentation files from ${DESTDIR}${IRSSI_DOC}/irssi-xmpp |
| 20 | @rm -rf ${DESTDIR}${IRSSI_DOC}/irssi-xmpp |
| 21 | |
| 22 | help-install: |
| 23 | @echo installing command help files to ${DESTDIR}${IRSSI_HELP} |
| 24 | @install -d ${DESTDIR}${IRSSI_HELP} |
| 25 | @cd help/ && install -m 644 presence roster role affiliation xmppconnect xmppserver ${DESTDIR}${IRSSI_HELP} |
| 26 | |
| 27 | help-uninstall: |
| 28 | @echo uninstalling command help files from ${DESTDIR}${IRSSI_HELP} |
| 29 | @cd ${DESTDIR}${IRSSI_HELP} && rm -f presence roster xmppconnect xmppserver |
| 30 | |
| 31 | .PHONY: all clean install uninstall user-install user-uninstall doc-install doc-uninstall help-install help-uninstall |