Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | srcdir = @srcdir@ |
| 2 | top_srcdir = @top_srcdir@ |
| 3 | VPATH = @srcdir@ |
| 4 | top_builddir = . |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5 | my_dir = . |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6 | INSTALL = @INSTALL@ |
Theodore Ts'o | 3ab2fd4 | 2020-10-04 23:05:01 -0400 | [diff] [blame] | 7 | MKDIR_P = @MKDIR_P@ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 8 | |
| 9 | @MCONFIG@ |
| 10 | |
Theodore Ts'o | 24c9b55 | 2008-07-14 22:38:01 -0400 | [diff] [blame] | 11 | % : %.sh |
| 12 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 13 | @RESIZER_CMT@RESIZE_DIR= resize |
| 14 | @DEBUGFS_CMT@DEBUGFS_DIR= debugfs |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 15 | @UUID_CMT@UUID_LIB_SUBDIR= lib/uuid |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 16 | @BLKID_CMT@BLKID_LIB_SUBDIR= lib/blkid |
Darrick J. Wong | 5ce368f | 2018-03-23 18:57:09 -0700 | [diff] [blame] | 17 | @E2SCRUB_CMT@E2SCRUB_DIR= scrub |
Theodore Ts'o | 0afb9be | 2018-08-18 11:19:25 -0400 | [diff] [blame] | 18 | @ALL_CMT@SUPPORT_LIB_SUBDIR= lib/support |
| 19 | @ALL_CMT@E2P_LIB_SUBDIR= lib/e2p |
| 20 | @ALL_CMT@EXT2FS_LIB_SUBDIR= lib/ext2fs |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 21 | |
Theodore Ts'o | 0afb9be | 2018-08-18 11:19:25 -0400 | [diff] [blame] | 22 | LIB_SUBDIRS=lib/et lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \ |
Theodore Ts'o | e598c29 | 2020-11-24 23:00:57 -0500 | [diff] [blame] | 23 | $(BLKID_LIB_SUBDIR) $(SUPPORT_LIB_SUBDIR) $(EXT2FS_LIB_SUBDIR) |
Theodore Ts'o | 0afb9be | 2018-08-18 11:19:25 -0400 | [diff] [blame] | 24 | |
Theodore Ts'o | 6ac81e4 | 2018-08-18 23:22:53 -0400 | [diff] [blame] | 25 | PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po \ |
| 26 | $(E2SCRUB_DIR) |
| 27 | |
Theodore Ts'o | f3b3dbb | 1999-07-19 16:18:52 +0000 | [diff] [blame] | 28 | SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 29 | |
Theodore Ts'o | 0355d6d | 2016-01-01 21:44:12 -0500 | [diff] [blame] | 30 | SUBS= util/subst.conf lib/config.h $(top_builddir)/lib/dirpaths.h \ |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 31 | lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 32 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 33 | TAR=tar |
| 34 | |
Theodore Ts'o | 78130a2 | 2003-03-14 02:42:42 -0500 | [diff] [blame] | 35 | all:: subs |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 36 | $(MAKE) libs |
Theodore Ts'o | 0afb9be | 2018-08-18 11:19:25 -0400 | [diff] [blame] | 37 | @ALL_CMT@ $(MAKE) progs |
| 38 | @ALL_CMT@ $(MAKE) docs |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 39 | |
Theodore Ts'o | 93df80d | 2020-03-28 17:56:56 -0400 | [diff] [blame] | 40 | all-static:: |
| 41 | $(MAKE) libs |
| 42 | @ALL_CMT@ $(MAKE) static-progs |
| 43 | |
Theodore Ts'o | f0eae15 | 2008-10-10 14:00:46 -0400 | [diff] [blame] | 44 | subs: $(DEP_SUBSTITUTE) |
Theodore Ts'o | 60b30db | 2008-09-01 17:59:01 -0400 | [diff] [blame] | 45 | @for i in $(SUBS) ; do if test -d `dirname $$i` ; \ |
| 46 | then $(MAKE) $$i || exit $$? ; fi ; done |
| 47 | @(if test -d lib/et ; then cd lib/et && $(MAKE) compile_et; fi) |
| 48 | @(if test -d lib/ext2fs ; then cd lib/ext2fs && $(MAKE) ext2_err.h; fi) |
Theodore Ts'o | dcb8e1f | 2016-03-06 20:37:49 -0500 | [diff] [blame] | 49 | @(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi) |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 50 | |
Theodore Ts'o | 3a0d5d3 | 2010-05-17 23:48:52 -0400 | [diff] [blame] | 51 | progs: all-progs-recursive |
Theodore Ts'o | 93df80d | 2020-03-28 17:56:56 -0400 | [diff] [blame] | 52 | static-progs: all-static-progs-recursive |
Theodore Ts'o | 3a0d5d3 | 2010-05-17 23:48:52 -0400 | [diff] [blame] | 53 | libs: all-libs-recursive |
Theodore Ts'o | ed07fd9 | 2018-08-22 13:42:23 -0400 | [diff] [blame] | 54 | all-progs-recursive all-libs-recursive:: subs |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 55 | |
Theodore Ts'o | e5f0f3e | 2018-08-18 10:42:44 -0400 | [diff] [blame] | 56 | rpm: |
Andreas Dilger | 90466c1 | 2006-06-21 00:05:49 -0400 | [diff] [blame] | 57 | sh contrib/build-rpm |
| 58 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 59 | docs: |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 60 | -@test -d doc && cd doc && $(MAKE) libext2fs.info |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 61 | |
| 62 | install-doc-libs: |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 63 | -@test -d doc && cd doc && $(MAKE) install-doc-libs |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 64 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 65 | uninstall-doc-libs: |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 66 | -@test -d doc && cd doc && $(MAKE) uninstall-doc-libs |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 67 | |
Theodore Ts'o | 3ac9f0e | 1999-07-19 21:02:11 +0000 | [diff] [blame] | 68 | clean-doc: |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 69 | -@test -d doc && cd doc && $(MAKE) clean |
Theodore Ts'o | 3ac9f0e | 1999-07-19 21:02:11 +0000 | [diff] [blame] | 70 | |
| 71 | distclean-doc: |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 72 | -test -d doc && cd doc && $(MAKE) distclean |
Theodore Ts'o | 3ac9f0e | 1999-07-19 21:02:11 +0000 | [diff] [blame] | 73 | |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 74 | install: subs all-libs-recursive install-progs-recursive \ |
Theodore Ts'o | 522798d | 2004-12-15 11:28:55 -0500 | [diff] [blame] | 75 | install-shlibs-libs-recursive install-doc-libs |
Theodore Ts'o | feb235e | 2018-08-24 17:12:20 -0400 | [diff] [blame] | 76 | @SUBSET_CMT@ $(MAKE) install-libs |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 77 | |
Theodore Ts'o | 522798d | 2004-12-15 11:28:55 -0500 | [diff] [blame] | 78 | install-strip: subs all-libs-recursive install-strip-progs-recursive \ |
| 79 | install-shlibs-strip-libs-recursive install-doc-libs |
| 80 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 81 | uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs |
| 82 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 83 | install-libs: install-libs-recursive |
| 84 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 85 | uninstall-libs: uninstall-libs-recursive |
| 86 | |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 87 | coverage.txt: coverage.txt-recursive |
| 88 | |
Matthias Andree | 58b3d8d | 2012-05-11 19:14:30 -0400 | [diff] [blame] | 89 | check-recursive: all |
| 90 | |
Theodore Ts'o | 11b8ef8 | 2017-04-26 10:07:18 -0400 | [diff] [blame] | 91 | TAGS clean-recursive distclean-recursive depend-recursive fullcheck-recursive \ |
| 92 | check-recursive mostlyclean-recursive realclean-recursive \ |
| 93 | coverage.txt-recursive: |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 94 | @for subdir in $(SUBDIRS); do \ |
Theodore Ts'o | 24b2c7a | 1997-06-07 20:42:58 +0000 | [diff] [blame] | 95 | if test -d $$subdir ; then \ |
| 96 | target=`echo $@|$(SED) 's/-recursive//'`; \ |
| 97 | echo making $$target in $$subdir; \ |
| 98 | (cd $$subdir && $(MAKE) $$target) || exit 1; \ |
| 99 | fi ; \ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 100 | done |
| 101 | |
Theodore Ts'o | 522798d | 2004-12-15 11:28:55 -0500 | [diff] [blame] | 102 | all-progs-recursive install-progs-recursive install-strip-progs-recursive \ |
Theodore Ts'o | ed07fd9 | 2018-08-22 13:42:23 -0400 | [diff] [blame] | 103 | uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive |
| 104 | |
| 105 | |
Theodore Ts'o | 93df80d | 2020-03-28 17:56:56 -0400 | [diff] [blame] | 106 | @ALL_CMT@all-progs-recursive all-static-progs-recursive install-progs-recursive \ |
| 107 | @ALL_CMT@ install-strip-progs-recursive uninstall-progs-recursive \ |
| 108 | @ALL_CMT@ coverage.txt-progs-recursive:: all-libs-recursive |
Theodore Ts'o | ed07fd9 | 2018-08-22 13:42:23 -0400 | [diff] [blame] | 109 | @ALL_CMT@ @for subdir in $(PROG_SUBDIRS); do \ |
| 110 | @ALL_CMT@ if test -d $$subdir ; then \ |
| 111 | @ALL_CMT@ target=`echo $@|$(SED) 's/-progs-recursive//'`; \ |
| 112 | @ALL_CMT@ echo making $$target in $$subdir; \ |
| 113 | @ALL_CMT@ (cd $$subdir && $(MAKE) $$target) || exit 1; \ |
| 114 | @ALL_CMT@ fi ; \ |
| 115 | @ALL_CMT@ done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 116 | |
Theodore Ts'o | 522798d | 2004-12-15 11:28:55 -0500 | [diff] [blame] | 117 | all-libs-recursive install-libs-recursive install-strip-libs-recursive \ |
| 118 | uninstall-libs-recursive install-shlibs-libs-recursive \ |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 119 | install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive \ |
Theodore Ts'o | ed07fd9 | 2018-08-22 13:42:23 -0400 | [diff] [blame] | 120 | coverage.txt-libs-recursive:: |
Theodore Ts'o | 47204ff | 2004-11-30 10:52:27 -0500 | [diff] [blame] | 121 | @for subdir in $(LIB_SUBDIRS); do \ |
Theodore Ts'o | 24b2c7a | 1997-06-07 20:42:58 +0000 | [diff] [blame] | 122 | if test -d $$subdir ; then \ |
| 123 | target=`echo $@|$(SED) 's/-libs-recursive//'`; \ |
| 124 | echo making $$target in $$subdir; \ |
| 125 | (cd $$subdir && $(MAKE) $$target) || exit 1; \ |
| 126 | fi ; \ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 127 | done |
| 128 | |
| 129 | mostlyclean: mostlyclean-recursive mostlyclean-local |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 130 | |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 131 | clean:: clean-recursive clean-local clean-doc |
Theodore Ts'o | 605e6f0 | 2004-11-30 22:06:27 -0500 | [diff] [blame] | 132 | $(RM) -f $(SUBS) |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 133 | |
Theodore Ts'o | 9c3ea64 | 2008-01-01 17:00:39 -0500 | [diff] [blame] | 134 | distclean: distclean-doc distclean-recursive |
Theodore Ts'o | e5f0f3e | 2018-08-18 10:42:44 -0400 | [diff] [blame] | 135 | $(RM) -rf autom4te.cache ext2ed/Makefile po/stamp-po \ |
Theodore Ts'o | 59a220d | 2015-07-01 19:40:23 -0400 | [diff] [blame] | 136 | asm_types.h config.log public_config.h parse-types.log |
Theodore Ts'o | 9c3ea64 | 2008-01-01 17:00:39 -0500 | [diff] [blame] | 137 | $(MAKE) distclean-local |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 138 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 139 | realclean: realclean-recursive realclean-local |
| 140 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 141 | depend:: depend-recursive |
| 142 | |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 143 | lib/ext2fs/ext2_types.h: $(DEP_SUBSTITUTE) asm_types.h \ |
| 144 | $(srcdir)/lib/ext2fs/ext2_types.h.in |
| 145 | cd $(top_builddir); CONFIG_FILES=./lib/ext2fs/ext2_types.h ./config.status |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 146 | |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 147 | lib/blkid/blkid_types.h: $(DEP_SUBSTITUTE) asm_types.h \ |
| 148 | $(srcdir)/lib/blkid/blkid_types.h.in |
| 149 | cd $(top_builddir); CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status |
Theodore Ts'o | ed1b33e | 2003-03-01 19:29:01 -0500 | [diff] [blame] | 150 | |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 151 | lib/uuid/uuid_types.h: $(DEP_SUBSTITUTE) asm_types.h \ |
| 152 | $(srcdir)/lib/uuid/uuid_types.h.in |
| 153 | cd $(top_builddir); CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 154 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 155 | mostlyclean-local: |
Andreas Dilger | 83d0b97 | 2001-08-04 01:02:34 -0600 | [diff] [blame] | 156 | $(RM) -f \#* *~ *.orig core MAKELOG |
Theodore Ts'o | 5c36a2f | 1999-11-19 18:42:30 +0000 | [diff] [blame] | 157 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 158 | clean-local: mostlyclean-local |
Theodore Ts'o | 5c36a2f | 1999-11-19 18:42:30 +0000 | [diff] [blame] | 159 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 160 | distclean-local: clean-local |
Andreas Dilger | 83d0b97 | 2001-08-04 01:02:34 -0600 | [diff] [blame] | 161 | $(RM) -f $(SUBS) $(SUBST_CONF) \ |
Theodore Ts'o | 5c36a2f | 1999-11-19 18:42:30 +0000 | [diff] [blame] | 162 | config.status config.log config.cache MCONFIG Makefile \ |
| 163 | $(srcdir)/TAGS $(srcdir)/Makefile.in.old |
| 164 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 165 | realclean-local: distclean-local |
| 166 | $(RM) -f configure |
| 167 | |
Andreas Dilger | db7cb4b | 2011-06-15 22:17:38 -0400 | [diff] [blame] | 168 | check:: all check-recursive |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 169 | |
Theodore Ts'o | 11b8ef8 | 2017-04-26 10:07:18 -0400 | [diff] [blame] | 170 | fullcheck:: all fullcheck-recursive |