xref: /freebsd/contrib/libxo/xohtml/Makefile.am (revision b1f92fa22938fe29ab7e53692ffe0ed7a0ecc4d0)
1#
2# Copyright 2015, Juniper Networks, Inc.
3# All rights reserved.
4# This SOFTWARE is licensed under the LICENSE provided in the
5# ../Copyright file. By downloading, installing, copying, or otherwise
6# using the SOFTWARE, you agree to be bound by the terms of that
7# LICENSE.
8
9man_MANS = xohtml.1
10
11EXTERNAL_FILES = \
12    external/jquery.js \
13    external/jquery.qtip.css \
14    external/jquery.qtip.js
15
16INTERNAL_FILES = \
17    xohtml.js \
18    xohtml.css
19
20EXTRA_DIST = \
21    xohtml.1 \
22    xohtml.sh.in \
23    ${INTERNAL_FILES} \
24    ${EXTERNAL_FILES}
25
26install-exec-hook:
27	install xohtml.sh ${DESTDIR}${bindir}/xohtml
28	mkdir -p ${DESTDIR}${XO_SHAREDIR}/external
29	for file in ${INTERNAL_FILES}; do \
30	    install ${srcdir}/$$file ${DESTDIR}${XO_SHAREDIR} ; done
31	for file in ${EXTERNAL_FILES}; do \
32	    install ${srcdir}/$$file ${DESTDIR}${XO_SHAREDIR}/external ; done
33
34uninstall-hook:
35	for file in ${INTERNAL_FILES} ${EXTERNAL_FILES}; do \
36	    rm ${DESTDIR}${XO_SHAREDIR}/$$file ; done
37	rmdir ${DESTDIR}${XO_SHAREDIR}/external
38	rm -f ${DESTDIR}${bindir}/xohtml
39
40install-data-hook:
41	for file in ${man_MANS}; do \
42	    cat ../libxo/add.man >> ${DESTDIR}${man1dir}/$$file ; done
43