From: Jan Safranek Date: Mon, 14 Dec 2009 08:22:22 +0000 (+0100) Subject: Install init scripts during 'make install' X-Git-Tag: v0.35~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7bc0967e22e21f1d74d50aa1e3b7c95ab2a2f15;p=thirdparty%2Flibcgroup.git 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 --- diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 0bc7938f..46cd26e5 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