summaryrefslogtreecommitdiff
path: root/.Makefile.inc
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-01 15:05:33 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-01 15:05:33 +0000
commit77f2c57c6072220c7ded7d40c4ef82ea4756fb3e (patch)
tree262bf000ddb27bd7c61679151edc7966476d086a /.Makefile.inc
parentd1188236f2e731b0a6d59bb2abaa218d5dc8fd60 (diff)
Fix "make module" to include dependency generation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11562 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to '.Makefile.inc')
-rw-r--r--.Makefile.inc12
1 files changed, 7 insertions, 5 deletions
diff --git a/.Makefile.inc b/.Makefile.inc
index d39c91b0d..feb8ed99b 100644
--- a/.Makefile.inc
+++ b/.Makefile.inc
@@ -51,7 +51,9 @@ SOCKETENGINE = @SOCKETENGINE@
# Default target
@IFDEF M
- _all: module
+ _all: module
+ @BSD_ONLY MODNAME = ${M:S/.so$//}
+ @GNU_ONLY MODNAME = $(M:.so=)
@ENDIF
all: finishmessage
@@ -64,6 +66,10 @@ alldep: $(HEADER)
allreal: alldep
@$(MAKEENV) $(MAKE) -C src -f ../make/$(MAKESTYLE)-real.mk all
+module:
+ @cd src; ../make/calcdep.pl modules/$(MODNAME).cpp
+ @$(MAKEENV) $(MAKE) -C src -f modules/.$(MODNAME).d modules/$(MODNAME).so
+
debug:
@${MAKE} D=1 all
@@ -121,10 +127,6 @@ install: allreal@EXTRA_DIR@
@echo "* REMEMBER TO EDIT YOUR CONFIG FILE *"
@echo "*************************************"
-module:
- @BSD_ONLY @${MAKE} -C src/modules $(MAKEARGS) ${M:S/.so$//}.so
- @GNU_ONLY @${MAKE} -C src/modules $(MAKEARGS) $(M:.so=).so
-
clean:
@echo Cleaning...
@rm -f src/inspircd src/modes/modeclasses.a