# 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.

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

clean:
	rm -f build-stamp configure-stamp filexfer-1.0.hza

filexfer-1.0.hza:
	tar -czvf filexfer-1.0.hza download.css download.html upload.css upload.html exportfile.tcl importfile.tcl filexfer importfile exportfile server.tcl tclIndex utils.tcl manifest.xml

install: filexfer-1.0.hza
	install -d $(INSTDIR)/hubzero --owner $(OWNER) --group $(GROUP) --mode 0755
	install -d $(INSTDIR)/hubzero/apps --owner $(OWNER) --group $(GROUP) --mode 0755
	install filexfer-1.0.hza $(INSTDIR)/hubzero/apps --owner $(OWNER) --group $(GROUP) --mode 0644
