1srcdir = @srcdir@ 2top_srcdir = @top_srcdir@ 3VPATH = @srcdir@ 4top_builddir = . 5my_dir = . 6INSTALL = @INSTALL@ 7 8@MCONFIG@ 9 10% : %.sh 11 12@RESIZER_CMT@RESIZE_DIR= resize 13@DEBUGFS_CMT@DEBUGFS_DIR= debugfs 14@UUID_CMT@UUID_LIB_SUBDIR= lib/uuid 15@BLKID_CMT@BLKID_LIB_SUBDIR= lib/blkid 16QUOTA_LIB_SUBDIR= lib/quota 17 18LIB_SUBDIRS=lib/et lib/ss lib/e2p $(UUID_LIB_SUBDIR) lib/ext2fs $(BLKID_LIB_SUBDIR) $(QUOTA_LIB_SUBDIR) intl 19PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po 20SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests 21 22SUBS= util/subst.conf lib/config.h lib/dirpaths.h \ 23 lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h 24 25TAR=tar 26 27all:: subs 28 $(MAKE) libs 29 $(MAKE) progs 30 $(MAKE) docs 31 32subs: $(DEP_SUBSTITUTE) 33 @for i in $(SUBS) ; do if test -d `dirname $$i` ; \ 34 then $(MAKE) $$i || exit $$? ; fi ; done 35 @(if test -d lib/et ; then cd lib/et && $(MAKE) compile_et; fi) 36 @(if test -d lib/ext2fs ; then cd lib/ext2fs && $(MAKE) ext2_err.h; fi) 37 38progs: all-progs-recursive 39libs: all-libs-recursive 40all-progs-recursive all-libs-recursive: subs 41 42e2fsprogs.spec: $(DEP_SUBSTITUTE) e2fsprogs.spec.in 43 cd $(top_builddir); CONFIG_FILES=./e2fsprogs.spec ./config.status 44 45rpm: e2fsprogs.spec 46 sh contrib/build-rpm 47 48docs: 49 -@test -d doc && cd doc && $(MAKE) libext2fs.info 50 51install-doc-libs: 52 -@test -d doc && cd doc && $(MAKE) install-doc-libs 53 54uninstall-doc-libs: 55 -@test -d doc && cd doc && $(MAKE) uninstall-doc-libs 56 57clean-doc: 58 -@test -d doc && cd doc && $(MAKE) clean 59 60distclean-doc: 61 -test -d doc && cd doc && $(MAKE) distclean 62 63install: subs all-libs-recursive install-progs-recursive \ 64 install-shlibs-libs-recursive install-doc-libs 65 if test ! -d e2fsck && test ! -d debugfs && test ! -d misc && test ! -d ext2ed ; then $(MAKE) install-libs ; fi 66 67install-strip: subs all-libs-recursive install-strip-progs-recursive \ 68 install-shlibs-strip-libs-recursive install-doc-libs 69 70uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs 71 72install-libs: install-libs-recursive 73 74uninstall-libs: uninstall-libs-recursive 75 76check-recursive: all 77 78TAGS clean-recursive distclean-recursive depend-recursive check-recursive \ 79 mostlyclean-recursive realclean-recursive: 80 @for subdir in $(SUBDIRS); do \ 81 if test -d $$subdir ; then \ 82 target=`echo $@|$(SED) 's/-recursive//'`; \ 83 echo making $$target in $$subdir; \ 84 (cd $$subdir && $(MAKE) $$target) || exit 1; \ 85 fi ; \ 86 done 87 88all-progs-recursive install-progs-recursive install-strip-progs-recursive \ 89 uninstall-progs-recursive: all-libs-recursive 90 @for subdir in $(PROG_SUBDIRS); do \ 91 if test -d $$subdir ; then \ 92 target=`echo $@|$(SED) 's/-progs-recursive//'`; \ 93 echo making $$target in $$subdir; \ 94 (cd $$subdir && $(MAKE) $$target) || exit 1; \ 95 fi ; \ 96 done 97 98all-libs-recursive install-libs-recursive install-strip-libs-recursive \ 99 uninstall-libs-recursive install-shlibs-libs-recursive \ 100 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive: 101 @for subdir in $(LIB_SUBDIRS); do \ 102 if test -d $$subdir ; then \ 103 target=`echo $@|$(SED) 's/-libs-recursive//'`; \ 104 echo making $$target in $$subdir; \ 105 (cd $$subdir && $(MAKE) $$target) || exit 1; \ 106 fi ; \ 107 done 108 109mostlyclean: mostlyclean-recursive mostlyclean-local 110 111clean: clean-recursive clean-local clean-doc 112 $(RM) -f $(SUBS) 113 114distclean: distclean-doc distclean-recursive 115 $(RM) -rf autom4te.cache e2fsprogs.spec ext2ed/Makefile po/stamp-po 116 $(MAKE) distclean-local 117 118realclean: realclean-recursive realclean-local 119 120depend:: depend-recursive 121 122lib/ext2fs/ext2_types.h: $(DEP_SUBSTITUTE) asm_types.h \ 123 $(srcdir)/lib/ext2fs/ext2_types.h.in 124 cd $(top_builddir); CONFIG_FILES=./lib/ext2fs/ext2_types.h ./config.status 125 126lib/blkid/blkid_types.h: $(DEP_SUBSTITUTE) asm_types.h \ 127 $(srcdir)/lib/blkid/blkid_types.h.in 128 cd $(top_builddir); CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status 129 130lib/uuid/uuid_types.h: $(DEP_SUBSTITUTE) asm_types.h \ 131 $(srcdir)/lib/uuid/uuid_types.h.in 132 cd $(top_builddir); CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status 133 134mostlyclean-local: 135 $(RM) -f \#* *~ *.orig core MAKELOG 136 137clean-local: mostlyclean-local 138 139distclean-local: clean-local 140 $(RM) -f $(SUBS) $(SUBST_CONF) \ 141 config.status config.log config.cache MCONFIG Makefile \ 142 $(srcdir)/TAGS $(srcdir)/Makefile.in.old 143 144realclean-local: distclean-local 145 $(RM) -f configure 146 147check:: all check-recursive 148 149