src/server/Makefile

changeset 84
afd57ce39ec9
parent 62
c47e081b6c0f
child 91
fac51f87def0
--- a/src/server/Makefile	Mon Jul 01 18:05:13 2013 +0200
+++ b/src/server/Makefile	Mon Jul 08 11:10:54 2013 +0200
@@ -35,7 +35,7 @@
 
 MAIN_TARGET = $(BUILD_ROOT)/work/bin/webservd
 
-all: preparation $(MAIN_TARGET)
+all: preparation $(MAIN_TARGET) $(PLUGINS)
 
 include ucx/objs.mk
 include util/objs.mk
@@ -55,7 +55,7 @@
 
 MAINOBJS = $(UCXOBJS) $(UTILOBJS) $(SAFOBJS) $(DAVOBJS) $(DAEMONOBJS) $(CONFOBJS) $(ADMINOBJS)
 
-OBJ_DIRS = daemon safs ucx util webdav config admin
+OBJ_DIRS = daemon safs ucx util webdav config admin plugins
 MK_OBJ_DIRS = $(OBJ_DIRS:%=$(OBJ_DIR)server/%)
 MK_OBJ_DIRS += $(BUILD_ROOT)/work/bin
 
@@ -74,6 +74,8 @@
 	$(CC) -o $@ -c $(CFLAGS) $<
 
 
+$(PLUGINS): $(MAIN_TARGET)
+	cd plugins/$@/; $(MAKE) all
 	
 	
 

mercurial