1srcdir = @srcdir@ 2top_srcdir = @top_srcdir@ 3VPATH = @srcdir@ 4top_builddir = . 5my_dir = . 6INSTALL = @INSTALL@ 7MKDIR_P = @MKDIR_P@ 8 9@MCONFIG@ 10 11% : %.sh 12 13@RESIZER_CMT@RESIZE_DIR= resize 14@DEBUGFS_CMT@DEBUGFS_DIR= debugfs 15@UUID_CMT@UUID_LIB_SUBDIR= lib/uuid 16@BLKID_CMT@BLKID_LIB_SUBDIR= lib/blkid 17@E2SCRUB_CMT@E2SCRUB_DIR= scrub 18@ALL_CMT@SUPPORT_LIB_SUBDIR= lib/support 19@ALL_CMT@E2P_LIB_SUBDIR= lib/e2p 20@ALL_CMT@EXT2FS_LIB_SUBDIR= lib/ext2fs 21 22LIB_SUBDIRS=lib/et lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \ 23 $(BLKID_LIB_SUBDIR) $(SUPPORT_LIB_SUBDIR) $(EXT2FS_LIB_SUBDIR) 24 25PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs \ 26 tests/fuzz po $(E2SCRUB_DIR) 27 28SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests 29 30SUBS= util/subst.conf lib/config.h $(top_builddir)/lib/dirpaths.h \ 31 lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h 32 33TAR=tar 34 35all:: subs 36 $(MAKE) libs 37@ALL_CMT@ $(MAKE) progs 38@ALL_CMT@ $(MAKE) docs 39 40all-static:: 41 $(MAKE) libs 42@ALL_CMT@ $(MAKE) static-progs 43 44subs: $(DEP_SUBSTITUTE) 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) 49 @(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi) 50 51progs: all-progs-recursive 52static-progs: all-static-progs-recursive 53libs: all-libs-recursive 54all-progs-recursive all-libs-recursive:: subs 55 56rpm: 57 sh contrib/build-rpm 58 59docs: 60 -@test -d doc && cd doc && $(MAKE) libext2fs.info 61 62install-doc-libs: 63 -@test -d doc && cd doc && $(MAKE) install-doc-libs 64 65uninstall-doc-libs: 66 -@test -d doc && cd doc && $(MAKE) uninstall-doc-libs 67 68clean-doc: 69 -@test -d doc && cd doc && $(MAKE) clean 70 71distclean-doc: 72 -test -d doc && cd doc && $(MAKE) distclean 73 74install: subs all-libs-recursive install-progs-recursive \ 75 install-shlibs-libs-recursive install-doc-libs 76@SUBSET_CMT@ $(MAKE) install-libs 77 78install-strip: subs all-libs-recursive install-strip-progs-recursive \ 79 install-shlibs-strip-libs-recursive install-doc-libs 80 81uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs 82 83install-libs: install-libs-recursive 84 85uninstall-libs: uninstall-libs-recursive 86 87coverage.txt: coverage.txt-recursive 88 89check-recursive: all 90 91TAGS clean-recursive distclean-recursive depend-recursive fullcheck-recursive \ 92 check-recursive mostlyclean-recursive realclean-recursive \ 93 coverage.txt-recursive: 94 @for subdir in $(SUBDIRS); do \ 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 ; \ 100 done 101 102all-progs-recursive install-progs-recursive install-strip-progs-recursive \ 103 uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive 104 105 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 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 116 117all-libs-recursive install-libs-recursive install-strip-libs-recursive \ 118 uninstall-libs-recursive install-shlibs-libs-recursive \ 119 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive \ 120 coverage.txt-libs-recursive:: 121 @for subdir in $(LIB_SUBDIRS); do \ 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 ; \ 127 done 128 129mostlyclean: mostlyclean-recursive mostlyclean-local 130 131clean:: clean-recursive clean-local clean-doc 132 $(RM) -f $(SUBS) 133 134distclean: distclean-doc distclean-recursive 135 $(RM) -rf autom4te.cache ext2ed/Makefile po/stamp-po \ 136 asm_types.h config.log public_config.h parse-types.log 137 $(MAKE) distclean-local 138 139realclean: realclean-recursive realclean-local 140 141depend:: depend-recursive 142 143lib/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 146 147lib/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 150 151lib/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 154 155mostlyclean-local: 156 $(RM) -f \#* *~ *.orig core MAKELOG 157 158clean-local: mostlyclean-local 159 160distclean-local: clean-local 161 $(RM) -f $(SUBS) $(SUBST_CONF) \ 162 config.status config.log config.cache MCONFIG Makefile \ 163 $(srcdir)/TAGS $(srcdir)/Makefile.in.old 164 165realclean-local: distclean-local 166 $(RM) -f configure 167 168check:: all check-recursive 169 170fullcheck:: all fullcheck-recursive 171