# Copyright 2006-2009 by Purdue Research Foundation, West Lafayette, IN 47906.
# Copyright 2004-2010 by Purdue University.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.

INSTDIR=$(DESTDIR)/usr/lib
LOGDIR=$(DESTDIR)/var/log
ETCDIR=$(DESTDIR)/etc
OWNER=root
GROUP=root
WEBGROUP=www-data
WEBOWNER=www-data

clean:
	rm -f configure-stamp build-stamp

install:
	install --owner $(OWNER) --group $(WEBGROUP) --mode 0770 -d $(INSTDIR)/mw/
	install --owner $(OWNER) --group $(WEBGROUP) --mode 0770 -d $(INSTDIR)/mw/vncproxy
	install --owner $(WEBOWNER) --group $(WEBGROUP) --mode 0770 -d $(LOGDIR)/mw
	install --owner $(OWNER) --group $(GROUP) --mode 0700 -D vncproxy.py $(INSTDIR)/mw/vncproxy/vncproxy.py
	install --owner $(OWNER) --group $(GROUP) --mode 0700 -D vncproxy $(ETCDIR)/init.d/vncproxy
