Whamcloud - gitweb
tune2fs: Fix "tune2fs -j <dev>" for extent-enabled filesystems
[tools/e2fsprogs.git] / util / Makefile.in
index ed224a4..4ad769f 100644 (file)
@@ -14,17 +14,34 @@ SRCS = $(srcdir)/subst.c
 @MCONFIG@
 
 .c.o:
-       $(BUILD_CC) -c $(ALL_CFLAGS) $< -o $@
+       $(E) "  CC $<"
+       $(Q) $(BUILD_CC) -c $(BUILD_CFLAGS) $< -o $@
 
 PROGS=         subst
 
-all:: $(PROGS)
+all:: $(PROGS) gen-tarball
 
 subst: subst.o
-       $(BUILD_CC) $(ALL_LDFLAGS) -o subst subst.o
+       $(E) "  LD $@"
+       $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o
+
+copy_sparse: copy_sparse.o
+       $(E) "  LD $@"
+       $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o copy_sparse copy_sparse.o
+
+gen-tarball: $(srcdir)/gen-tarball.in $(top_builddir)/config.status
+       $(E) "  CONFIG.STATUS $@"
+       $(Q) cd $(top_builddir); CONFIG_FILES=util/gen-tarball ./config.status
+       $(Q) chmod +x gen-tarball
+
+tarballs: gen-tarball
+       sh gen-tarball debian
+       sh gen-tarball all
+       sh gen-tarball subset
 
 clean:
-       $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core
+       $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
+               copy-sparse
 
 mostlyclean: clean