This target will be used for scripts that do not need to be compiled.
This patch also moves the new huge_page_setup_helper.py into its own
group which is not installed by default.

Signed-off-by: Eric B Munson <[email protected]>
---
 Makefile |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 22e19d1..7c0712b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,9 @@ LIBPUOBJS = init_privutils.o debug.o hugeutils.o 
kernel-features.o
 INSTALL_OBJ_LIBS = libhugetlbfs.so libhugetlbfs.a libhugetlbfs_privutils.so
 BIN_OBJ_DIR=obj
 PM_OBJ_DIR=TLBC
-INSTALL_BIN = hugectl hugeedit hugeadm pagesize huge_page_setup_helper.py
-INSTALL_STAT = cpupcstat oprofile_map_events.pl oprofile_start.sh
+INSTALL_BIN = hugectl hugeedit hugeadm pagesize 
+INSTALL_SCRIPT = cpupcstat oprofile_map_events.pl oprofile_start.sh
+INSTALL_HELPER = huge_page_setup_helper.py
 INSTALL_PERLMOD = DataCollect.pm OpCollect.pm PerfCollect.pm Report.pm
 INSTALL_HEADERS = hugetlbfs.h
 INSTALL_MAN1 = pagesize.1
@@ -409,9 +410,9 @@ install-bin:
                $(INSTALL) -m 755 $(BIN_OBJ_DIR)/$$x $(DESTDIR)$(EXEDIR); done
 
 install-stat: install-perlmod
-       @$(VECHO) INSTALL_STAT $(DESTDIR)$(EXEDIR)
+       @$(VECHO) INSTALL_SCRIPT $(DESTDIR)$(EXEDIR)
        $(INSTALL) -d $(DESTDIR)$(EXEDIR)
-       for x in $(INSTALL_STAT); do \
+       for x in $(INSTALL_SCRIPT); do \
                $(INSTALL) -m 755 $$x $(DESTDIR)$(EXEDIR); done
 
 install-perlmod:
@@ -422,6 +423,12 @@ install-perlmod:
 
 install: install-libs install-bin install-man install-stat
 
+install-helper:
+       @$(VECHO) INSTALL_HELPER $(DESTDIR)$(EXEDIR)
+       $(INSTALL) -d $(DESTDIR)$(EXEDIR)
+       for x in $(INSTALL_HELPER); do \
+               $(INSTALL) -m 755 $$x $(DESTDIR)$(EXEDIR); done
+
 install-docs:
        $(INSTALL) -d $(DESTDIR)$(DOCDIR)
        for x in $(EXTRA_DIST); do $(INSTALL) -m 755 $$x 
$(DESTDIR)$(DOCDIR)/$$x; done
-- 
1.6.3.3


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to