summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-05 11:47:23 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-05 11:47:23 +0000
commit7b0f9d5fbd9b83c2473aaff591d32d7c9024de4e (patch)
tree6f9829d222e8f3b57196a40dbd7c68f74e41dab0 /src
parent176ddfa18c02136904e0ea7c93a8a58d68c2f313 (diff)
Fixed bug in makefile, all 'edited' modules will now e recompiled
Touched m_alias.cpp (No changes) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@791 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/modules/Makefile b/src/modules/Makefile
index c40e159b2..b0c50a569 100644
--- a/src/modules/Makefile
+++ b/src/modules/Makefile
@@ -1,13 +1,10 @@
# (C) ChatSpike development team
# Makefile by <Craig@ChatSpike.net>
-# Small modifications by <brain@ChatSpike.net>
-#
+# Many Thanks to Andrew Church <achurch@achurch.org>
+# for assisting with making this work right.
all: $(MODULES)
-%.so:
- @$(MAKE) --no-print-directory TARGET=$(@:.so=)
-
-$(TARGET).so:
- $(CC) -I../../include $(FLAGS) -shared -o $@ $(TARGET).cpp
- @cp $(TARGET).so $(MODPATH)/$(TARGET).so
+%.so: %.cpp
+ $(CC) -I../../include $(FLAGS) -shared -o $@ $<
+ @cp $@ $(MODPATH)/