- rm src/modules/Makefile
- rm src/Makefile
- rm Makefile
- rm include/inspircd_config.h
- rm include/inspircd_se_config.h
-
-distclean: modclean clean configureclean
-
+ rm -f src/modules/Makefile
+ rm -f src/commands/Makefile
+ rm -f src/Makefile
+ -rm -f Makefile
+ rm -f BSDmakefile
+ rm -f GNUmakefile
+ rm -f include/inspircd_config.h
+ rm -f include/inspircd_version.h
+ rm -f include/inspircd_se_config.h
+
+distclean: clean configureclean
+
+help:
+ @echo 'InspIRCd Makefile'
+ @echo ''
+ @echo 'Use: ${MAKE} [flags] [targets]'
+ @echo ''
+ @echo 'Flags:'
+ @echo ' V=1 Show the full command being executed instead of "BUILD: dns.cpp"'
+ @echo ' D=1 Enable debug build, for module development or crash tracing'
+ @echo ' -j <N> Run a parallel build using N jobs'
+ @echo ''
+ @echo 'User targets:'
+ @echo ' all Complete build of InspIRCd, without installing'
+ @echo ' install Build and install InspIRCd to the directory chosen in ./configure'
+ @echo ' Currently installs to ${BASE}'
+ @echo ' debug Compile a debug build. Equivalent to "make D=1 all"'
+ @echo ''
+ @echo ' M=m_foo Builds a single module (cmd_foo also works here)'
+ @echo ' T=target Builds a user-specified target, such as "inspircd" or "modules"'
+ @echo ' Other targets are specified by their path in the build directory'
+ @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 ' deinstall Removes the files created by "make install"'
+ @echo
+
+.PHONY: all target debug debug-header mod-header mod-footer std-header finishmessage install clean deinstall squeakyclean launchd_dir configureclean help