From d7bc0967e22e21f1d74d50aa1e3b7c95ab2a2f15 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Mon, 14 Dec 2009 09:22:22 +0100 Subject: Install init scripts during 'make install' Install init scripts during 'make install'. I am not sure this is right thing to do, all the other projects I participate in do not install their init scripts, but Dhaval thinks it's nice to have it. Signed-off-by: Jan Safranek Signed-off-by: Dhaval Giani --- scripts/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 0bc7938..46cd26e 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -1 +1,9 @@ EXTRA_DIST = init.d/cgconfig.in init.d/cgred.in + +INITSCRIPTDIR=$(DESTDIR)/etc/init.d +install-exec-hook: + mkdir -p $(INITSCRIPTDIR) + cp init.d/cgconfig init.d/cgred $(INITSCRIPTDIR) + +uninstall-hook: + rm -f $(INITSCRIPTDIR)/cgconfig $(INITSCRIPTDIR)/cgred -- cgit