# See the file COPYING in this distribution
if MODULES
-if SMFS
modulefs_DATA = smfs$(KMODEXT)
endif
-endif
-MOSTLYCLEANFILES = *.o *.ko *.mod.c
-DIST_SOURCES = $(smfs-objs:%.o=%.c) smfs_internal.h
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
+DIST_SOURCES = $(smfs-objs:%.o=%.c) smfs_internal.h smfs_api.h