updates
[torrus-plus.git] / plugins / overview / Makefile.am
blobd43dbc2886da87b4be456e9a5f1d9a8ee647ca40
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
24 CLEANFILES = \
25         ov_substvars.sh \
26         tp-overview.apache.conf
28 noinst_SCRIPTS = \
29         ov_substvars.sh
31 EXTRA_DIST = \
32         menu/credits.htm \
33         menu/menu.xsl.in \
34         menu/welcome.htm \
35         overview/overview.xsl.in \
36         xtree/xtree.css \
37         xtree/xtree.js.in  \
38         ov_substvars.sh.in \
39         tp-overview.apache.conf.in
41 welcome_htm = $(webplaindir)/menu/welcome.htm
42 credits_htm = $(webplaindir)/menu/credits.htm
44 install-data-local:
45         $(mkinstalldirs) $(DESTDIR)$(webplaindir)/menu
46         if test ! -r $(DESTDIR)$(welcome_htm); then \
47           $(INSTALL_DATA) menu/welcome.htm $(DESTDIR)$(welcome_htm); \
48         fi
49         if test ! -r $(DESTDIR)$(credits_htm); then \
50           $(INSTALL_DATA) menu/credits.htm $(DESTDIR)$(credits_htm); \
51         fi
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 );\
57         fi
60 #####   Documentation files   #####
61 mydocdir  = $(pkgdocdir)
62 dist_mydoc_DATA = tp-overview.txt tp-overview.pod
63 SUFFIXES = .pod .txt
64 .pod.txt:
65         pod2text $< $@
68 #####   XSLT scripts  #####
69 tpovscriptsdir = $(webscriptsdir)/tp-overview
70 tpovscripts_DATA = \
71         menu/menu.xsl \
72         overview/overview.xsl
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
82 dist_menu_DATA = \
83         menu/bg.jpg \
84         menu/menu.css \
85         menu/menu.js \
86         menu/sampleMenu.xml
88 #####   Overview files   #####
89 overviewsdir    = $(webplaindir)/overviews
90 dist_overviews_DATA = \
91         overview/common.inc \
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 = \
102         xtree/I.png \
103         xtree/L.png \
104         xtree/Lminus.png \
105         xtree/Lplus.png \
106         xtree/T.png \
107         xtree/Tminus.png \
108         xtree/Tplus.png \
109         xtree/blank.png \
110         xtree/file.png \
111         xtree/foldericon.png \
112         xtree/new.png \
113         xtree/openfoldericon.png
115 #####   css files   #####
116 cssdir  = $(webplaindir)
117 dist_css_DATA = \
118         css/ov-mozilla.css \
119         css/ov-printer.css \
120         css/ov.css \
121         css/overview.css
123 #####   templates files   #####
124 mytmpldir = $(tmpldir)/ov
125 dist_mytmpl_DATA = \
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
145 #####   icons   #####
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
163 htdocs:
164         for f in *.pod; do \
165           pod2html -css=../torrusdoc.css $$f > ../../htdocs/plugins/$$f.html; \
166         done
169 UPLOADPATH = \
170    ssinyagin,torrus@web.sourceforge.net:/home/groups/t/to/torrus/htdocs/devel
172 upload: dist
173         scp $(distdir).tar.gz $(UPLOADPATH)