# Authors: Bas van der Vlies # Date : 28 Mar 2007 # Desc. : Simple Makefile # # SVN INFO: # $Id: Makefile.in 172 2009-08-19 10:21:25Z bas $ # # prefix=@prefix@ exec_prefix=@exec_prefix@ SBIN_DIR=@sbindir@ BIN_DIR=@bindir@ DATA_DIR=@datadir@/doc/pxeconfig PYTHON_BIN=@PYTHON@ CONFIG=@sysconfdir@ INSTALL=./install-sh PYTHON_FILES=pxeconfig hexls EXAMPLES=default.flashqla default.harddisk default.memtest default.node_install pxeconfigd.xinetd PXEMENU_DIRS=pxemenu syslinux-doc PXEMENU_FILES=README-pxemenu INSTALL-pxemenu all: compile compile: python setup.py build install: install-conf install-examples install-pxemenu python ./setup.py install --prefix $(DESTDIR)/$(exec_prefix) $(INSTALL) -d $(DESTDIR)$(SBIN_DIR) $(INSTALL) -d $(DESTDIR)$(BIN_DIR) $(INSTALL) -m 755 -o root src/pxeconfigd $(DESTDIR)$(SBIN_DIR) for script in $(PYTHON_FILES) ; \ do \ $(INSTALL) -m 755 -o root src/$$script $(DESTDIR)$(BIN_DIR)/$$script ;\ done install-conf: if [ ! -f $(DESTDIR)/$(CONFIG)/pxeconfig.conf ] ; \ then \ $(INSTALL) -c -m 644 -o root pxeconfig.conf $(DESTDIR)/$(CONFIG)/pxeconfig.conf ;\ fi install-examples: $(INSTALL) -d $(DESTDIR)$(DATA_DIR)/examples for file in $(EXAMPLES) ; \ do \ $(INSTALL) -c -m 644 -o root examples/$$file $(DESTDIR)$(DATA_DIR)/examples/$$file ;\ done install-pxemenu: $(INSTALL) -d $(DESTDIR)$(DATA_DIR) for dir in $(PXEMENU_DIRS) ; \ do \ cp -a $$dir $(DESTDIR)$(DATA_DIR)/$$dir ;\ done for file in $(PXEMENU_FILES) ; \ do \ $(INSTALL) -c -m 644 -o root $$file $(DESTDIR)$(DATA_DIR)/$$file ;\ done clean: distclean distclean: rm src/pxeconfig src/pxe_global.py src/pxeconfigd src/hexls examples/pxeconfigd.xinetd config.log config.status Makefile python setup.py clean -a