source: trunk/Makefile.in @ 84

Last change on this file since 84 was 83, checked in by bas, 17 years ago

Makefile.in:

  • Added install-examples and working install config
  • Property svn:keywords set to Id URL
File size: 1.2 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 83 2007-03-28 20:19:10Z 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
21EXAMPLES=default.flashqla  default.harddisk  default.memtest  default.node_install
[79]22
[80]23all: compile
24
25compile:
[83]26        @echo "done compiling"
[80]27
[83]28install: install-conf install-examples
29        $(INSTALL) -d $(DESTDIR)$(SBIN_DIR)
30        $(INSTALL) -d $(DESTDIR)$(BIN_DIR)
31        $(INSTALL) -m 755 -o root pxeconfigd $(DESTDIR)$(SBIN_DIR)
[79]32        for script in $(PYTHON_FILES) ; \
33        do \
[83]34          $(INSTALL) -m 755 -o root $$script  $(DESTDIR)$(BIN_DIR)/$$script ;\
[79]35        done
36
37install-conf:
38        if [ ! -f  $(DESTDIR)/$(CONFIG)/pxeconfig.conf ] ; \
39        then \
40                $(INSTALL) -c -m 644 -o root pxeconfig.conf $(DESTDIR)/$(CONFIG)/pxeconfig.conf ;\
41        fi
[83]42
43install-examples:
44        $(INSTALL) -d $(DESTDIR)$(DATA_DIR)/examples
45        for file in $(EXAMPLES) ; \
46        do \
47          $(INSTALL) -c -m 644 -o root examples/$$file  $(DESTDIR)$(DATA_DIR)/examples/$$file ;\
48        done
49
50       
[79]51 
52clean: distclean
[82]53        echo "Removing pxeconfig pxeconfigd hexls Makefile config.log config.status"
[79]54
55distclean:
56        rm pxeconfig config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.