]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Teach the makefile to build all of the programs in the util directory
authorTheodore Ts'o <tytso@mit.edu>
Sat, 22 Feb 2025 05:14:24 +0000 (00:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 22 Feb 2025 05:14:24 +0000 (00:14 -0500)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
util/Makefile.in

index 7ad18c0aa0b5088f8eebf7d99b465546eea9131c..f26b04e4dd644fa3025afcbf44ce7f7fdb84fc8d 100644 (file)
@@ -20,7 +20,7 @@ SRCS = $(srcdir)/subst.c $(srcdir)/mkutf8data.c
        $(Q) $(CHECK_CMD) $(ALL_CFLAGS) $<
        $(Q) $(CPPCHECK_CMD) $(CPPFLAGS) $<
 
-PROGS=         subst symlinks mkutf8data
+PROGS= copy_sparse gen-tarball install-symlink mkutf8data subst symlinks
 
 all:: $(PROGS) gen-tarball
 
@@ -34,6 +34,10 @@ subst: subst.o
        $(E) "  LD $@"
        $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o subst subst.o
 
+install-symlink: install-symlink.in $(top_builddir)/config.status
+       cd $(top_builddir); CONFIG_FILES=util/install-symlink ./config.status
+       chmod +x $(top_builddir)/util/install-symlink
+
 mkutf8data: mkutf8data.o
        $(E) "  LD $@"
        $(Q) $(BUILD_CC) $(BUILD_LDFLAGS) -o mkutf8data mkutf8data.o
@@ -57,8 +61,7 @@ tarballs: gen-tarball
        sh gen-tarball subset
 
 clean::
-       $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz gen-tarball \
-               copy-sparse dirpaths.h install-symlink mkutf8data
+       $(RM) -f $(PROGS) \#* *.s *.o *.a *~ core *.tar.gz dirpaths.h
 
 mostlyclean: clean