From e1f16114869433beafc069131ff59e181ef6b8ee Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Fri, 12 Oct 2007 20:03:12 +0000 Subject: [PATCH] Build fix. --- Makefile | 5 ++--- vsys.spec | 6 +++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d05d91f..90b6585 100644 --- a/Makefile +++ b/Makefile @@ -37,9 +37,8 @@ vsys.b: inotify.cma inotify.cmi globals.ml fdwatcher.ml dirwatcher.ml fifowatche ocamlc -g str.cma unix.cma inotify.cma globals.cmo fdwatcher.cmo dirwatcher.cmo fifowatcher.cmo frontend.cmo backend.cmo str.cma main.cmo -o vsys.b install: vsys - cp vsys /usr/bin - cp vsys.b /usr/bin - cp vsys-initscript /etc/init.d/vsys + cp vsys $(INSTALL_DIR)/usr/bin + cp vsys-initscript $(INSTALL_DIR)/etc/init.d/vsys dep: ocamldep *.ml > .dep diff --git a/vsys.spec b/vsys.spec index 95fc555..c13a8d9 100644 --- a/vsys.spec +++ b/vsys.spec @@ -40,7 +40,11 @@ rm -rf $RPM_BUILD_ROOT make %install -make install +mkdir -p ${VSYS_INSTALL_DIR}/usr/bin +cp vsys ${VSYS_INSTALL_DIR}/usr/bin +cp vsys.b ${VSYS_INSTALL_DIR}/usr/bin +cp vsys-initscript ${VSYS_INSTALL_DIR}/etc/init.d/vsys +make -DVSYS_BIN_DIR=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT -- 2.43.0