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