Whamcloud - gitweb
Merge branch 'maint' into next
[tools/e2fsprogs.git] / debugfs / Makefile.in
index 1a65c13..a768248 100644 (file)
@@ -151,7 +151,8 @@ uninstall:
 
 clean::
        $(RM) -f $(PROGS) debugfs.8 \#* *.s *.o *.a *~ debug_cmds.c \
-               extent_cmds.c ro_debug_cmds.c core rdebugfs debugfs.static
+               extent_cmds.c ro_debug_cmds.c core rdebugfs debugfs.static \
+               tst_set_fields
 
 mostlyclean: clean
 distclean: clean
@@ -159,6 +160,14 @@ distclean: clean
                $(srcdir)/Makefile.in.old $(srcdir)/recovery.c \
                $(srcdir)/revoke.c
 
+tst_set_fields: set_fields.c util.c
+       $(E) "  LD $@"
+       $(Q) $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(SYSLIBS) -DUNITTEST \
+               -o tst_set_fields $(srcdir)/set_fields.c $(srcdir)/util.c $(LIBS)
+
+check:: tst_set_fields
+       $(TESTENV) ./tst_set_fields
+
 # +++ Dependency line eater +++
 # 
 # Makefile dependencies follow.  This must be the last section in