/bin/bash
 # Copyright 2006, MILLE-XTERM
 # Makefile to build the /opt/xtermroot/screen.d/ scripts
 #
 # Tanks to McQuillan (McQuillan Systems, LLC) from LTSP
 # 
 # This file is part of the MILLE-XTERM distribution.
 # See the MILLE-XTERM (english) and/or the MILLE (french) project web site
 #
 # http://www.revolutionlinux.com/mille-xterm/
 # http://www.mille.ca/
 #
 # The MILLE-XTERM framework is covered by the GNU General Public License. See
 # the COPYING file in the top-level MILLE-XTERM directory. Software packages
 # that are included in the MILLE-XTERM distribution have their own licenses.
 #
 # ------------------------------------------------------------------------- 

all:	${DESTDIR}/etc/screen.d/startx		\
	${DESTDIR}/etc/screen.d/shell		\
	${DESTDIR}/etc/screen.d/telnet

${DESTDIR}/etc/screen.d/startx:	${DESTDIR}/etc/screen.d
	echo "Installing screen.d/startx..."
	cp startx    ${DESTDIR}/etc/screen.d/startx
	chmod 0755   ${DESTDIR}/etc/screen.d/startx

${DESTDIR}/etc/screen.d/shell:	${DESTDIR}/etc/screen.d
	echo "Installing screen.d/shell..."
	cp shell     ${DESTDIR}/etc/screen.d/shell
	chmod 0755   ${DESTDIR}/etc/screen.d/shell

${DESTDIR}/etc/screen.d/telnet:	${DESTDIR}/etc/screen.d
	echo "Installing screen.d/telnet..."
	cp telnet    ${DESTDIR}/etc/screen.d/telnet
	chmod 0755   ${DESTDIR}/etc/screen.d/telnet

${DESTDIR}/etc/screen.d:
	echo "Creating screen.d..."
	mkdir      ${DESTDIR}/etc/screen.d
	chmod 0755 ${DESTDIR}/etc/screen.d

install:	all
