@echo "ldiskfs_OBJECTS: $(ldiskfs_OBJECTS)"
@echo "ldiskfs_LDADD: $(ldiskfs_LDADD)"
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
CLEANFILES = sources $(notdir $(linux_headers) $(ext3_headers) $(ext3_sources) $(new_sources) $(new_headers))
EXTRA_DIST := lustre_quota_fmt.c lustre_quota_fmt.h quotafmt_test.c
@echo "ldiskfs_OBJECTS: $(ldiskfs_OBJECTS)"
@echo "ldiskfs_LDADD: $(ldiskfs_LDADD)"
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
CLEANFILES = sources $(notdir $(linux_headers) $(ext3_headers) $(ext3_sources) $(new_sources) $(new_headers))
EXTRA_DIST := lustre_quota_fmt.c lustre_quota_fmt.h quotafmt_test.c
# ldlm is built into ptlrpc
#
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
DIST_SOURCES = ldlm_extent.c ldlm_flock.c ldlm_internal.h ldlm_lib.c \
ldlm_lock.c ldlm_lockd.c ldlm_plain.c ldlm_request.c \
ldlm_resource.c l_lock.c
endif
DIST_SOURCES := $(llite-objs:.o=.c) llite_internal.h rw24.c super.c rw26.c super25.c
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
endif # MODULES
DIST_SOURCES = $(lov-objs:.o=.c) lov_internal.h
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
lvfs_internal.h lvfs_linux.c lvfs_userfs.c \
quotacheck_test.c quotactl_test.c
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
CLEANFILES = fsfilt-*.c fsfilt_ldiskfs.c fsfilt_extN.c sources
endif
DIST_SOURCES = $(mdc-objs:.o=.c) mdc_internal.h
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
modulefs_DATA = mds$(KMODEXT)
endif
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
DIST_SOURCES := $(mds-objs:%.o=%.c) mds_internal.h
DIST_SOURCES += quota_context.c quota_master.c
noinst_DATA = llog_test$(KMODEXT)
endif # MODULES
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c llog-test.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ llog-test.c
DIST_SOURCES = $(filter-out llog-test.c,$(obdclass-objs:.o=.c)) $(llog-test-objs:.o=.c) llog_test.c llog_internal.h
modulefs_DATA = obdecho$(KMODEXT)
endif # MODULES
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
DIST_SOURCES = $(obdecho-objs:%.o=%.c)
modulefs_DATA = obdfilter$(KMODEXT)
endif
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
DIST_SOURCES = $(obdfilter-objs:%.o=%.c) filter_io_24.c filter_io_26.c filter_internal.h
modulefs_DATA = osc$(KMODEXT)
endif
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
DIST_SOURCES = $(osc-objs:%.o=%.c) osc_internal.h
modulefs_DATA = ost$(KMODEXT)
endif
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
DIST_SOURCES = $(ost-objs:%.o=%.c) ost_internal.h
modulefs_DATA = ptlrpc$(KMODEXT)
endif # MODULES
-MOSTLYCLEANFILES = .*.flags *.o *.ko *.mod.c ldlm_*.c l_lock.c
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ ldlm_*.c l_lock.c
DIST_SOURCES = $(ptlrpc_objs:.o=.c) ptlrpc_internal.h