aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric B Munson <ebmunson@us.ibm.com>2009-12-20 07:53:20 +0000
committerEric B Munson <ebmunson@us.ibm.com>2009-12-20 08:08:38 +0000
commit9a69de8b7cb8c17b60a445add64b303423f57bb9 (patch)
treeed09485b65009c3b057ec8d2fb58609974b10361 /Makefile
parentc3b782e0d3c54fe6a2140fc962b5f810a164282c (diff)
downloadlibhugetlbfs-9a69de8b7cb8c17b60a445add64b303423f57bb9.tar.gz
Change INSTALL_STAT target to INSTALL_SCRIPT
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 <ebmunson@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 22e19d1..944ab0a 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