source: trunk/Makefile.in @ 160

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

Makefile.in

  • Property svn:keywords set to Id URL
File size: 1.7 KB
Line 
1# Authors: Bas van der Vlies
2# Date   : 28 Mar 2007
3# Desc.  : Simple Makefile
4#
5# SVN INFO:
6#      $Id: Makefile.in 144 2009-04-15 12:52:26Z bas $
7#
8#
9prefix=@prefix@
10exec_prefix=@exec_prefix@
11SBIN_DIR=@sbindir@
12BIN_DIR=@bindir@
13DATA_DIR=@datadir@/doc/pxeconfig
14PYTHON_BIN=@PYTHON@
15CONFIG=@sysconfdir@
16
17
18INSTALL=./install-sh
19
20PYTHON_FILES=pxeconfig hexls
21EXAMPLES=default.flashqla  default.harddisk  default.memtest  default.node_install pxeconfigd.xinetd
22PXEMENU_DIRS=pxemenu syslinux-doc
23PXEMENU_FILES=README-pxemenu INSTALL-pxemenu
24
25all: compile
26
27compile:
28        python setup.py build
29
30install: install-conf install-examples install-pxemenu
31        python ./setup.py install --prefix $(DESTDIR)/$(exec_prefix)
32        $(INSTALL) -d $(DESTDIR)$(SBIN_DIR)
33        $(INSTALL) -d $(DESTDIR)$(BIN_DIR)
34        $(INSTALL) -m 755 -o root src/pxeconfigd $(DESTDIR)$(SBIN_DIR)
35        for script in $(PYTHON_FILES) ; \
36        do \
37          $(INSTALL) -m 755 -o root src/$$script  $(DESTDIR)$(BIN_DIR)/$$script ;\
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
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
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
63 
64clean: distclean
65
66distclean:
67        rm src/pxeconfig src/pxeconfig.py src/pxeconfigd src/hexls examples/pxeconfigd.xinetd config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.