Smart trick: the 'build complete' message is now a makefile section of its own which depends on 'ircd' and 'mods', so when using -j, the rest of the processes will wait to complete before displaying the message ;)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5554 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-10-27 14:08:52 +00:00
parent 531b6fdbf6
commit 2579e83d3d

View File

@ -21,11 +21,15 @@ MODULES = @MODULES@
STATICLIBS = @STATICLIBS@
MAKEARGS = 'PROGS=${PROGS}' 'FLAGS=${FLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'STATICLIBS=${STATICLIBS}'
all : @MAKEORDER@
all : @MAKEORDER@ finishmessage
mods:
@echo "Making modules..."
${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS)
# Make this depend on 'ircd' and 'mods', so its always output last even with -j
finishmessage: ircd mods
@echo ""
@echo "*************************************"
@echo "* BUILD COMPLETE! *"
@echo "* To install InspIRCd, type: *"
@ -127,6 +131,7 @@ install: all
@-cp conf/cert.pem $(CONPATH)
@-cp docs/inspircd.conf.example $(CONPATH)
${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS) modinst
@echo ""
@echo "*************************************"
@echo "* INSTALL COMPLETE! *"
@echo "* It is safe to ignore any messages *"