diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-25 20:51:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-25 20:51:58 +0000 |
commit | a9d2342f6af5d9e1fb2a6e42d71493300c0c39f9 (patch) | |
tree | f37c14d206f0f3f728f7ee18fc1addaf4aaae0f5 /.Makefile.inc | |
parent | 01241d4574bf256aca1b6a379fe2c5685681d758 (diff) |
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
Diffstat (limited to '.Makefile.inc')
-rw-r--r-- | .Makefile.inc | 21 |
1 files changed, 4 insertions, 17 deletions
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: |