From a9d2342f6af5d9e1fb2a6e42d71493300c0c39f9 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 25 Oct 2007 20:51:58 +0000 Subject: Make install list list automatically generated from build targets and provide facility for installing extra files. Using this, cert.pem and key.pem are only copied to the conf dir if you enabled an ssl module. Also, this provides facility for a 'make deinstall' which should be safe for use in all situations as it always specifies a file by name and never uses wildcards to rm. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8362 e03df62e-2008-0410-955e-edbf42e46eb7 --- .Makefile.inc | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to '.Makefile.inc') diff --git a/.Makefile.inc b/.Makefile.inc index af5a617e9..3afbf67a8 100644 --- a/.Makefile.inc +++ b/.Makefile.inc @@ -71,24 +71,8 @@ install: all@EXTRA_DIR@ @-install -d -m $(INSTMODE) $(BINPATH) @-install -d -m $(INSTMODE) $(CONPATH) @-install -d -m $(INSTMODE) $(MODPATH) -@INSTALL_LIST@ -install -m $(INSTMODE) src/inspircd $(BINPATH) -install -m $(INSTMODE) @STARTSCRIPT@ $(@DESTINATION@) 2>/dev/null - @-cp .gdbargs $(BASE) - @-cp conf/inspircd.quotes.example $(CONPATH) - @-cp conf/inspircd.rules.example $(CONPATH) - @-cp conf/inspircd.motd.example $(CONPATH) - @-cp conf/inspircd.helpop-full.example $(CONPATH) - @-cp conf/inspircd.helpop.example $(CONPATH) - @-cp conf/inspircd.censor.example $(CONPATH) - @-cp conf/inspircd.filter.example $(CONPATH) - @-cp conf/key.pem $(CONPATH) - @-cp conf/cert.pem $(CONPATH) - @-cp docs/inspircd.conf.example $(CONPATH) - ${MAKE} modinstall - -modinstall: mods - ${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS) modinst - @echo "" +@INSTALL_LIST@ @echo "" @echo "*************************************" @echo "* INSTALL COMPLETE! *" @echo "* *" @@ -115,6 +99,9 @@ modclean: rm -rf lib/*.so rm -f bin/inspircd +deinstall: +@UNINSTALL_LIST@ + squeakyclean: distclean launchd_dir: -- cgit v1.2.3