source: trunk/Makefile.in @ 171

Last change on this file since 171 was 171, checked in by bas, 15 years ago

configure. configure.in, Makefile.in:

  • added new files

src/pxeconfigd.in:

  • new daemon code, like client side

src/pxeconfigd.py:

  • use the common function defined in pxe_global.py
  • reformat the code
  • added daemon hook script

setup.py:

  • added some new modules


  • Property svn:keywords set to Id URL
File size: 1.7 KB
RevLine 
[79]1# Authors: Bas van der Vlies
2# Date   : 28 Mar 2007
3# Desc.  : Simple Makefile
4#
5# SVN INFO:
[80]6#      $Id: Makefile.in 171 2009-08-19 08:53:16Z bas $
[79]7#
8#
9prefix=@prefix@
[83]10exec_prefix=@exec_prefix@
11SBIN_DIR=@sbindir@
12BIN_DIR=@bindir@
13DATA_DIR=@datadir@/doc/pxeconfig
[79]14PYTHON_BIN=@PYTHON@
15CONFIG=@sysconfdir@
16
17
18INSTALL=./install-sh
19
[83]20PYTHON_FILES=pxeconfig hexls
[86]21EXAMPLES=default.flashqla  default.harddisk  default.memtest  default.node_install pxeconfigd.xinetd
[107]22PXEMENU_DIRS=pxemenu syslinux-doc
23PXEMENU_FILES=README-pxemenu INSTALL-pxemenu
[79]24
[80]25all: compile
26
27compile:
[138]28        python setup.py build
[80]29
[107]30install: install-conf install-examples install-pxemenu
[138]31        python ./setup.py install --prefix $(DESTDIR)/$(exec_prefix)
[83]32        $(INSTALL) -d $(DESTDIR)$(SBIN_DIR)
33        $(INSTALL) -d $(DESTDIR)$(BIN_DIR)
[142]34        $(INSTALL) -m 755 -o root src/pxeconfigd $(DESTDIR)$(SBIN_DIR)
[79]35        for script in $(PYTHON_FILES) ; \
36        do \
[142]37          $(INSTALL) -m 755 -o root src/$$script  $(DESTDIR)$(BIN_DIR)/$$script ;\
[79]38        done
39
40install-conf:
41        if [ ! -f  $(DESTDIR)/$(CONFIG)/pxeconfig.conf ] ; \
42        then \
43                $(INSTALL) -c -m 644 -o root pxeconfig.conf $(DESTDIR)/$(CONFIG)/pxeconfig.conf ;\
44        fi
[83]45
46install-examples:
47        $(INSTALL) -d $(DESTDIR)$(DATA_DIR)/examples
48        for file in $(EXAMPLES) ; \
49        do \
50          $(INSTALL) -c -m 644 -o root examples/$$file  $(DESTDIR)$(DATA_DIR)/examples/$$file ;\
51        done
52
[107]53install-pxemenu:
54        $(INSTALL) -d $(DESTDIR)$(DATA_DIR)
55        for dir in $(PXEMENU_DIRS) ; \
56        do \
57                cp -a $$dir $(DESTDIR)$(DATA_DIR)/$$dir ;\
58        done
59        for file in $(PXEMENU_FILES) ; \
60        do \
61                $(INSTALL) -c -m 644 -o root $$file  $(DESTDIR)$(DATA_DIR)/$$file ;\
62        done
[79]63 
64clean: distclean
65
66distclean:
[171]67        rm src/pxeconfig src/pxe_global.py src/pxeconfigd src/hexls examples/pxeconfigd.xinetd config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.