1 # Copyright (C) 2003 Christian Schnidrig
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 # Christian Schnidrig <christian.schnidrig@bluewin.ch>
20 # Overview Torrus plugin Automake script
22 SUBST = @abs_top_builddir@/ov_substvars.sh
26 tp-overview.apache.conf
35 overview/overview.xsl.in \
39 tp-overview.apache.conf.in
41 welcome_htm = $(webplaindir)/menu/welcome.htm
42 credits_htm = $(webplaindir)/menu/credits.htm
45 $(mkinstalldirs) $(DESTDIR)$(webplaindir)/menu
46 if test ! -r $(DESTDIR)$(welcome_htm); then \
47 $(INSTALL_DATA) menu/welcome.htm $(DESTDIR)$(welcome_htm); \
49 if test ! -r $(DESTDIR)$(credits_htm); then \
50 $(INSTALL_DATA) menu/credits.htm $(DESTDIR)$(credits_htm); \
52 if test ! -d $(DESTDIR)$(aspglobal); then \
53 ( $(mkinstalldirs) $(DESTDIR)$(aspglobal) && \
54 chown $(aspglbowner) $(DESTDIR)$(aspglobal) && \
55 chmod $(aspglbmode) $(DESTDIR)$(aspglobal) ) || \
56 ( rmdir $(DESTDIR)$(aspglobal); false );\
60 ##### Documentation files #####
61 mydocdir = $(pkgdocdir)
62 dist_mydoc_DATA = tp-overview.txt tp-overview.pod
68 ##### XSLT scripts #####
69 tpovscriptsdir = $(webscriptsdir)/tp-overview
74 menu/menu.xsl: menu/menu.xsl.in
75 $(SUBST) menu/menu.xsl.in > menu/menu.xsl
77 overview/overview.xsl: overview/overview.xsl.in
78 $(SUBST) overview/overview.xsl.in > overview/overview.xsl
80 ##### Menu files #####
81 menudir = $(webplaindir)/menu
88 ##### Overview files #####
89 overviewsdir = $(webplaindir)/overviews
90 dist_overviews_DATA = \
92 overview/sampleOverview.xml
94 ##### xtree files #####
95 xtreedir = $(webplaindir)/xtree
96 xtree_DATA = xtree/xtree.js xtree/xtree.css
97 xtree/xtree.js: xtree/xtree.js.in
98 $(SUBST) xtree/xtree.js.in > xtree/xtree.js
100 xtreeimagesdir = $(webplaindir)/xtree/images
101 dist_xtreeimages_DATA = \
111 xtree/foldericon.png \
113 xtree/openfoldericon.png
115 ##### css files #####
116 cssdir = $(webplaindir)
123 ##### templates files #####
124 mytmpldir = $(tmpldir)/ov
126 templates/item-rrd.html \
127 templates/default-chooser.html \
128 templates/default-dir.html \
129 templates/expanded-dir.html \
130 templates/html-incblocks.txt \
131 templates/tset-list.html \
132 templates/default-recursivedir.html \
133 templates/default-tset.html \
134 templates/sub-nodes-dir.html \
135 templates/overview-subleaves.html \
136 templates/tab-rrd.html
138 ##### xmlconfig files #####
139 myxmldir = $(distxmldir)
140 dist_myxml_DATA = ovDefaults.xml
142 xmlsampledir = $(distxmldir)/examples
143 dist_xmlsample_DATA = ovExample.xml
146 iconsdir = $(webplaindir)/icons
147 dist_icons_DATA = menu/menu.gif menu/torrus.ico
149 ##### Perl configuration files #####
150 torruscfgdir = $(plugtorruscfgdir)
151 dist_torruscfg_DATA = overview-torruscfg.pl
154 ##### Apache configuration #####
156 apachedir = $(supdir)/apache
157 nodist_apache_DATA = tp-overview.apache.conf
159 tp-overview.apache.conf: tp-overview.apache.conf.in
160 $(SUBST) tp-overview.apache.conf.in > tp-overview.apache.conf
165 pod2html -css=../torrusdoc.css $$f > ../../htdocs/plugins/$$f.html; \
170 ssinyagin,torrus@web.sourceforge.net:/home/groups/t/to/torrus/htdocs/devel
173 scp $(distdir).tar.gz $(UPLOADPATH)