Whamcloud - gitweb
LU-2989 build: some make targets are broken
[fs/lustre-release.git] / ldiskfs / ldiskfs / Makefile.in
index dd8b7ee..32ad2ee 100644 (file)
@@ -67,6 +67,7 @@ patches := @top_srcdir@/kernel_patches/patches
 ###############################
 
 EXTRA_CFLAGS += -I@LINUX@/fs -I@LDISKFSDIR@
+EXTRA_CFLAGS += -include @abs_top_builddir@/ldiskfs/ldiskfs_config.h
 EXTRA_CFLAGS += -include @abs_top_builddir@/config.h
 
 obj-m := ldiskfs.o
@@ -77,9 +78,14 @@ modules: sources
 
 clean:
        $(MAKE) -C @LINUX_OBJ@ M=$(shell pwd) $@
-       if [ -f @LINUX_SYMBOLS@ ]; then $(RM) @LINUX_SYMBOLS@; fi
        if [ -f Module.markers ]; then $(RM) Module.markers; fi
 
+distclean:
+       -rm -f Makefile
+
+maintainer-clean:
+       -rm -f Makefile
+
 modules_install:
        @# Install the kernel modules
        $(MAKE) -C @LINUX_OBJ@ M=$(shell pwd) \