Whamcloud - gitweb
lib/ext2fs: clean and build ext2_types.h as necessary
authorTheodore Ts'o <tytso@mit.edu>
Tue, 27 May 2014 16:24:33 +0000 (12:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 May 2014 16:24:33 +0000 (12:24 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/Makefile.in

index e5367fe..7bb85c0 100644 (file)
@@ -512,7 +512,8 @@ clean::
                tst_inline_data tst_inode_size tst_bitmaps_cmd.c \
                ext2_tdbtool mkjournal debug_cmds.c tst_cmds.c extent_cmds.c \
                ../libext2fs.a ../libext2fs_p.a ../libext2fs_chk.a \
-               crc32c_table.h gen_crc32ctable tst_crc32c tst_libext2fs
+               crc32c_table.h gen_crc32ctable tst_crc32c tst_libext2fs \
+               ext2fs.pc ext2_types.h
 
 mostlyclean:: clean
 distclean:: clean
@@ -534,6 +535,10 @@ crc32c_table.h: gen_crc32ctable
        $(E) "  GEN32CTABLE $@"
        $(Q) ./gen_crc32ctable > crc32c_table.h
 
+$(top_builddir)/$(my_dir)/ext2_types.h: $(srcdir)/ext2_types.h.in \
+               $(top_builddir)/config.status
+       cd $(top_builddir); CONFIG_FILES=$(my_dir)/ext2_types.h ./config.status
+
 # +++ Dependency line eater +++
 # 
 # Makefile dependencies follow.  This must be the last section in