]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/Makefile.in
Fix bat.pro.in so that bat will install.
[bacula/bacula] / bacula / Makefile.in
index 0fe99cb4b46d272a6fc6b20afb6acdc689f388ef..476fdf5004148af766ccbc43f44490f562fadb8b 100755 (executable)
@@ -191,8 +191,11 @@ Makefiles:
         chmod 755 make_catalog_backup delete_catalog_backup)
 
 clean:
-       @for I in ${all_subdirs} src/win32; \
+       @for I in ${all_subdirs} ; \
          do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
+       @if test `make --version | head -n1 | cut -c1-3` = "GNU" ; then \
+          (cd src/win32; ${MAKE} clean) \
+       fi
        @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
        @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
        @$(RMF) examples/1 examples/2 examples/devices/1 examples/devices/2