]> Zhao Yanbai Git Server - minix.git/commitdiff
Don't build arch objs more than once.
authorBen Gras <ben@minix3.org>
Mon, 11 May 2009 19:05:45 +0000 (19:05 +0000)
committerBen Gras <ben@minix3.org>
Mon, 11 May 2009 19:05:45 +0000 (19:05 +0000)
servers/vm/Makefile

index 29e7e56f424e39ee6939eb00d77164787b926095..bf3c6bfe30d565604b572441e261baf9c45c9b12 100644 (file)
@@ -15,7 +15,7 @@ CFLAGS = $(CPROFILE) $(CPPFLAGS)
 all build install:     $(SERVER)
        #install $(SERVER)
 
-$(SERVER):     $(OBJ) $(ARCHOBJ)
+$(SERVER):     $(OBJ) phony
        cd $(ARCH) && $(MAKE)
        $(CC) -o $@ $(LDFLAGS) $(OBJ) $(ARCHOBJ)  -lsys  
 
@@ -28,6 +28,9 @@ depend:
        cd $(ARCH) && $(MAKE) $@
        mkdep "$(CC) -E $(CPPFLAGS)" *.c $(ARCH)/*.c > .depend
 
+phony:
+       @:
+
 # Include generated dependencies.
 include .depend