Project

General

Profile

« Previous | Next » 

Revision f723f5b3

Added by Hamish Coleman over 17 years ago

  • ID f723f5b329dbc37171640d6a42205b26e3dd9add

Support installing on standard debian, add links to other versions

View differences:

Makefile
#DESTDIR := /
WWW_PERIL := /usr/share/WWW/mrtg
WWW_DEBIAN := /var/www/mrtg
ifeq ($(test -d $(WWW_PERIL) && echo yes),yes)
WWW := $(WWW_PERIL)
else
WWW := $(WWW_DEBIAN)
endif
all:
@echo error
false
install:
install mrtg.cgi $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ua.js $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftiens4.js $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2folderopen.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2vertline.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2mlastnode.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2mnode.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2plastnode.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2pnode.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2blank.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2lastnode.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2node.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2folderclosed.gif $(DESTDIR)/usr/share/WWW/mrtg/
install Treeview/ftv2doc.gif $(DESTDIR)/usr/share/WWW/mrtg/
install_treeview:
install Treeview/ua.js $(DESTDIR)$(WWW)/
install Treeview/ftiens4.js $(DESTDIR)$(WWW)/
install Treeview/ftv2folderopen.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2vertline.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2mlastnode.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2mnode.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2plastnode.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2pnode.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2blank.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2lastnode.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2node.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2folderclosed.gif $(DESTDIR)$(WWW)/
install Treeview/ftv2doc.gif $(DESTDIR)$(WWW)/
install: install_treeview
install mrtg.cgi $(DESTDIR)$(WWW)/
test:
install mrtg.cgi $(DESTDIR)/usr/share/WWW/mrtg/mrtg1.cgi
test: install_treeview
install mrtg.cgi $(DESTDIR)$(WWW)/mrtg1.cgi
mrtg.cgi
print '<DIV style="position:absolute; top:0; left:0;"><TABLE border=0><TR><TD><FONT size=-2><A style="font-size:7pt;text-decoration:none;color:silver" href="http://www.treemenu.net/" target=_blank>Javascript Tree Menu</A></FONT></TD></TR></TABLE></DIV>';
print '<script>initializeDocument()</script>';
print '<NOSCRIPT>A tree for site navigation will open here if you enable JavaScript in your browser.</NOSCRIPT>';
print hr;
print a({-href=>"?page=none",-target=>"_top"}, "Old menu");
print br;
print a({-href=>"?page=frame",-target=>"_top"}, "Basic frame");
print end_html;
} elsif($page eq 'noframe') {

Also available in: Unified diff