Do $(MAKE) modules_clean when compiling dynconfig.o. It's not the
authorJelmer Vernooij <jelmer@samba.org>
Tue, 25 Mar 2003 22:57:29 +0000 (22:57 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 25 Mar 2003 22:57:29 +0000 (22:57 +0000)
most elegant solution, but it works.

source/Makefile.in

index 711728190046d35d31b7a96a7ebaabc7fa0feeaa..97f89ab686cdc51da6f03ab057a7b8d6f8363894 100644 (file)
@@ -672,11 +672,13 @@ MAKEDIR = || exec false; \
 # but since we also require "make install prefix=/opt/samba" *not* to
 # rebuild it's a bit hard.
 
-dynconfig.o: dynconfig.c Makefile modules_clean
+dynconfig.o: dynconfig.c Makefile
+       @$(MAKE) modules_clean
        @echo Compiling $*.c
        @$(CC) $(FLAGS) $(PATH_FLAGS) -c $< -o $@ 
 
-dynconfig.po: dynconfig.c Makefile modules_clean
+dynconfig.po: dynconfig.c Makefile
+       @$(MAKE) modules_clean
        @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
          dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
        @echo Compiling $*.c with @PICFLAG@