Last change
on this file since 86 was
86,
checked in by bas, 17 years ago
|
debian:
- Added postrm/postinst scripts
examples/pxeconfigd.xinetd:
Makefile.in:
- Added pxeconfigd.xinetd to examples install
conffiles:
|
-
Property svn:keywords set to
Id URL
|
File size:
1.2 KB
|
Rev | Line | |
---|
[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 86 2007-03-29 06:56:32Z bas $ |
---|
[79] | 7 | # |
---|
| 8 | # |
---|
| 9 | prefix=@prefix@ |
---|
[83] | 10 | exec_prefix=@exec_prefix@ |
---|
| 11 | SBIN_DIR=@sbindir@ |
---|
| 12 | BIN_DIR=@bindir@ |
---|
| 13 | DATA_DIR=@datadir@/doc/pxeconfig |
---|
[79] | 14 | PYTHON_BIN=@PYTHON@ |
---|
| 15 | CONFIG=@sysconfdir@ |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | INSTALL=./install-sh |
---|
| 19 | |
---|
[83] | 20 | PYTHON_FILES=pxeconfig hexls |
---|
[86] | 21 | EXAMPLES=default.flashqla default.harddisk default.memtest default.node_install pxeconfigd.xinetd |
---|
[79] | 22 | |
---|
[80] | 23 | all: compile |
---|
| 24 | |
---|
| 25 | compile: |
---|
[83] | 26 | @echo "done compiling" |
---|
[80] | 27 | |
---|
[83] | 28 | install: 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 | |
---|
| 37 | install-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 | |
---|
| 43 | install-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 | |
---|
| 52 | clean: distclean |
---|
[82] | 53 | echo "Removing pxeconfig pxeconfigd hexls Makefile config.log config.status" |
---|
[79] | 54 | |
---|
| 55 | distclean: |
---|
| 56 | rm pxeconfig config.log config.status Makefile |
---|
Note: See
TracBrowser
for help on using the repository browser.