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 <[email protected]> --- scripts/Makefile.am | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) 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 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
