Changeset 83


Ignore:
Timestamp:
03/28/07 22:19:10 (15 years ago)
Author:
bas
Message:

Makefile.in:

  • Added install-examples and working install config
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r82 r83  
    88#
    99prefix=@prefix@
    10 EXEC_PREFIX=@exec_prefix@/bin
     10exec_prefix=@exec_prefix@
     11SBIN_DIR=@sbindir@
     12BIN_DIR=@bindir@
     13DATA_DIR=@datadir@/doc/pxeconfig
    1114PYTHON_BIN=@PYTHON@
    1215CONFIG=@sysconfdir@
     
    1518INSTALL=./install-sh
    1619
    17 PYTHON_FILES=pxeconfig
     20PYTHON_FILES=pxeconfig hexls
     21EXAMPLES=default.flashqla  default.harddisk  default.memtest  default.node_install
    1822
    1923all: compile
    2024
    2125compile:
    22         echo "done compiling"
     26        @echo "done compiling"
    2327
    24 install: install-conf
    25         $(INSTALL) -d $(DESTDIR)$(EXEC_PREFIX)
    26         #$(INSTALL) -m 4111 -o root run_email2trac $(DESTDIR)$(EXEC_PREFIX)
     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)
    2732        for script in $(PYTHON_FILES) ; \
    2833        do \
    29           #name=`basename $$script '.py'` ;\
    30           $(INSTALL) -m 755 -o root $$script  $(DESTDIR)$(EXEC_PREFIX)/$$script ;\
     34          $(INSTALL) -m 755 -o root $$script  $(DESTDIR)$(BIN_DIR)/$$script ;\
    3135        done
    3236
     
    3640                $(INSTALL) -c -m 644 -o root pxeconfig.conf $(DESTDIR)/$(CONFIG)/pxeconfig.conf ;\
    3741        fi
     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       
    3851 
    3952clean: distclean
Note: See TracChangeset for help on using the changeset viewer.