From 7b0f9d5fbd9b83c2473aaff591d32d7c9024de4e Mon Sep 17 00:00:00 2001 From: frostycoolslug Date: Wed, 5 May 2004 11:47:23 +0000 Subject: 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 --- src/modules/Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src') 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 -# Small modifications by -# +# Many Thanks to Andrew Church +# 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)/ -- cgit v1.2.3