]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix a few minor issues with `make distclean`.
authorPeter Powell <petpow@saberuk.com>
Sat, 27 Apr 2013 17:20:56 +0000 (18:20 +0100)
committerPeter Powell <petpow@saberuk.com>
Sat, 27 Apr 2013 22:09:20 +0000 (23:09 +0100)
- Only remove the base directory for in-source installs.
- Use full paths to the source directory.
- Update the help message to be more accurate.

make/template/main.mk

index 17e15f53af2f46420a4b22d3285c01818e92c005..e55e36c0a2410859a3759cdfdf96ca7b984cf587 100644 (file)
@@ -281,8 +281,8 @@ configureclean:
        -rm -f org.inspircd.plist
 
 distclean: clean configureclean
-       rm -rf $(BASE)
-       find src/modules/ -type l | xargs rm -f
+       -rm -rf $(SOURCEPATH)/run
+       find $(SOURCEPATH)/src/modules -type l | xargs rm -f
 
 help:
        @echo 'InspIRCd Makefile'
@@ -308,8 +308,7 @@ help:
        @echo '           Multiple targets may be separated by a space'
        @echo ''
        @echo ' clean     Cleans object files produced by the compile'
-       @echo ' distclean Cleans all files produced by compile and ./configure'
-       @echo '           Note: this includes the Makefile'
+       @echo ' distclean Cleans all generated files (build, configure, run, etc)'
        @echo ' deinstall Removes the files created by "make install"'
        @echo