# This code is issued under the GNU General Public License.
# See the file COPYING in this distribution
-modulenet_DATA = kgmnal$(KMODEXT)
+if MODULES
+if BUILD_GMLND
+modulenet_DATA = kgmlnd$(KMODEXT)
+endif
+endif
-MOSTLYCLEANFILES = *.o *.ko *.mod.c
-DIST_SOURCES = $(kgmnal-objs:%.o=%.c) gmnal.h
+MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
+DIST_SOURCES = $(kgmlnd-objs:%.o=%.c) gmlnd.h