1 | # Authors: Bas van der Vlies |
---|
2 | # Date : 28 Mar 2007 |
---|
3 | # Desc. : Simple Makefile |
---|
4 | # |
---|
5 | # SVN INFO: |
---|
6 | # $Id: Makefile.in 107 2007-10-03 10:37:36Z bas $ |
---|
7 | # |
---|
8 | # |
---|
9 | prefix=@prefix@ |
---|
10 | exec_prefix=@exec_prefix@ |
---|
11 | SBIN_DIR=@sbindir@ |
---|
12 | BIN_DIR=@bindir@ |
---|
13 | DATA_DIR=@datadir@/doc/pxeconfig |
---|
14 | PYTHON_BIN=@PYTHON@ |
---|
15 | CONFIG=@sysconfdir@ |
---|
16 | |
---|
17 | |
---|
18 | INSTALL=./install-sh |
---|
19 | |
---|
20 | PYTHON_FILES=pxeconfig hexls |
---|
21 | EXAMPLES=default.flashqla default.harddisk default.memtest default.node_install pxeconfigd.xinetd |
---|
22 | PXEMENU_DIRS=pxemenu syslinux-doc |
---|
23 | PXEMENU_FILES=README-pxemenu INSTALL-pxemenu |
---|
24 | |
---|
25 | all: compile |
---|
26 | |
---|
27 | compile: |
---|
28 | @echo "done compiling" |
---|
29 | |
---|
30 | install: install-conf install-examples install-pxemenu |
---|
31 | $(INSTALL) -d $(DESTDIR)$(SBIN_DIR) |
---|
32 | $(INSTALL) -d $(DESTDIR)$(BIN_DIR) |
---|
33 | $(INSTALL) -m 755 -o root pxeconfigd $(DESTDIR)$(SBIN_DIR) |
---|
34 | for script in $(PYTHON_FILES) ; \ |
---|
35 | do \ |
---|
36 | $(INSTALL) -m 755 -o root $$script $(DESTDIR)$(BIN_DIR)/$$script ;\ |
---|
37 | done |
---|
38 | |
---|
39 | install-conf: |
---|
40 | if [ ! -f $(DESTDIR)/$(CONFIG)/pxeconfig.conf ] ; \ |
---|
41 | then \ |
---|
42 | $(INSTALL) -c -m 644 -o root pxeconfig.conf $(DESTDIR)/$(CONFIG)/pxeconfig.conf ;\ |
---|
43 | fi |
---|
44 | |
---|
45 | install-examples: |
---|
46 | $(INSTALL) -d $(DESTDIR)$(DATA_DIR)/examples |
---|
47 | for file in $(EXAMPLES) ; \ |
---|
48 | do \ |
---|
49 | $(INSTALL) -c -m 644 -o root examples/$$file $(DESTDIR)$(DATA_DIR)/examples/$$file ;\ |
---|
50 | done |
---|
51 | |
---|
52 | install-pxemenu: |
---|
53 | $(INSTALL) -d $(DESTDIR)$(DATA_DIR) |
---|
54 | for dir in $(PXEMENU_DIRS) ; \ |
---|
55 | do \ |
---|
56 | cp -a $$dir $(DESTDIR)$(DATA_DIR)/$$dir ;\ |
---|
57 | done |
---|
58 | for file in $(PXEMENU_FILES) ; \ |
---|
59 | do \ |
---|
60 | $(INSTALL) -c -m 644 -o root $$file $(DESTDIR)$(DATA_DIR)/$$file ;\ |
---|
61 | done |
---|
62 | |
---|
63 | clean: distclean |
---|
64 | echo "Removing pxeconfig pxeconfigd hexls Makefile config.log config.status" |
---|
65 | |
---|
66 | distclean: |
---|
67 | rm pxeconfig pxeconfigd hexls config.log config.status Makefile |
---|