# Copyright 2006-2009 by Purdue Research Foundation, West Lafayette, IN 47906.
# All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License, version 2.1 as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

INSTDIR=$(DESTDIR)/usr/lib
OWNER=root
GROUP=www-data

DIRS=svn svn/trunk svn/trunk/rappture svn/trunk/src svn/trunk/bin \
     svn/trunk/data svn/trunk/middleware svn/trunk/examples svn/trunk/doc \
	 svn/branches svn/tags templates

FILES=getstart.txt.in cover.txt.in images.txt.in link.py.in \
      ldapconf.in image.py.in templates/site_css.cs \
	  templates/site_header.cs templates/site_footer.cs templates/site.html

clean:
	@true

install:
	install -d $(INSTDIR)/hubzero --owner $(OWNER) --group $(GROUP) --mode 0750
	install -d $(INSTDIR)/hubzero/addrepo --owner $(OWNER) --group $(GROUP) --mode 0750
	for d in $(DIRS) ; do install -d $(INSTDIR)/hubzero/addrepo/$$d --owner $(OWNER) --group $(GROUP) --mode 0750 ; done
	for f in $(FILES); do install $$f $(INSTDIR)/hubzero/addrepo/$$f --owner $(OWNER) --group $(GROUP) --mode 0750 ; done
	install addrepo $(INSTDIR)/hubzero/addrepo/addrepo --owner $(OWNER) --group $(GROUP) --mode 0750
	install gensvnapache.py $(INSTDIR)/hubzero/addrepo/gensvnapache.py --owner $(OWNER) --group $(GROUP) --mode 0750
