2 top_srcdir
= @top_srcdir@
12 @RESIZER_CMT@RESIZE_DIR
= resize
13 @DEBUGFS_CMT@DEBUGFS_DIR
= debugfs
15 LIB_SUBDIRS
=lib
/et lib
/ss lib
/e2p lib
/uuid lib
/ext2fs lib
/blkid intl
16 PROG_SUBDIRS
=e2fsck
$(DEBUGFS_DIR
) misc
$(RESIZE_DIR
) tests
/progs po
17 SUBDIRS
=util
$(LIB_SUBDIRS
) $(PROG_SUBDIRS
) tests
19 SUBS
= lib
/ext2fs
/ext2_types.h lib
/blkid
/blkid_types.h lib
/uuid
/uuid_types.h
29 @for i in
$(SUBS
) ; do if
test -d
`dirname $$i` ; \
30 then
$(MAKE
) $$i || exit
$$?
; fi
; done
31 @
(if
test -d lib
/et
; then cd lib
/et
&& $(MAKE
) compile_et
; fi
)
32 @
(if
test -d lib
/ext2fs
; then cd lib
/ext2fs
&& $(MAKE
) ext2_err.h
; fi
)
34 progs
: subs all-progs-recursive
35 libs
: subs all-libs-recursive
37 e2fsprogs.spec
: $(DEP_SUBSTITUTE
) e2fsprogs.spec.in
38 cd
$(top_builddir
); CONFIG_FILES
=.
/e2fsprogs.spec .
/config.status
44 -@
test -d doc
&& cd doc
&& $(MAKE
) libext2fs.
info
47 -@
test -d doc
&& cd doc
&& $(MAKE
) install-doc-libs
50 -@
test -d doc
&& cd doc
&& $(MAKE
) uninstall-doc-libs
53 -@
test -d doc
&& cd doc
&& $(MAKE
) clean
56 -test -d doc
&& cd doc
&& $(MAKE
) distclean
58 install: subs all-libs-recursive install-progs-recursive \
59 install-shlibs-libs-recursive install-doc-libs
60 if
test ! -d e2fsck
&& test ! -d debugfs
&& test ! -d misc
&& test ! -d ext2ed
; then
$(MAKE
) install-libs
; fi
62 install-strip
: subs all-libs-recursive install-strip-progs-recursive \
63 install-shlibs-strip-libs-recursive install-doc-libs
65 uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
67 install-libs
: install-libs-recursive
69 uninstall-libs
: uninstall-libs-recursive
71 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
72 mostlyclean-recursive realclean-recursive
:
73 @for subdir in
$(SUBDIRS
); do \
74 if
test -d
$$subdir ; then \
75 target
=`echo $@|$(SED) 's/-recursive//'`; \
76 echo making
$$target in
$$subdir; \
77 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
81 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
82 uninstall-progs-recursive
: all-libs-recursive
83 @for subdir in
$(PROG_SUBDIRS
); do \
84 if
test -d
$$subdir ; then \
85 target
=`echo $@|$(SED) 's/-progs-recursive//'`; \
86 echo making
$$target in
$$subdir; \
87 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
91 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
92 uninstall-libs-recursive install-shlibs-libs-recursive \
93 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive
:
94 @for subdir in
$(LIB_SUBDIRS
); do \
95 if
test -d
$$subdir ; then \
96 target
=`echo $@|$(SED) 's/-libs-recursive//'`; \
97 echo making
$$target in
$$subdir; \
98 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
102 mostlyclean: mostlyclean-recursive mostlyclean-local
104 clean: clean-recursive clean-local clean-doc
107 distclean: distclean-doc distclean-recursive
108 $(RM
) -rf autom4te.cache e2fsprogs.spec ext2ed
/Makefile po
/stamp-po
109 $(MAKE
) distclean-local
111 realclean: realclean-recursive realclean-local
113 depend
:: depend-recursive
115 lib
/ext2fs
/ext2_types.h
: $(DEP_SUBSTITUTE
) asm_types.h \
116 $(srcdir)/lib
/ext2fs
/ext2_types.h.in
117 cd
$(top_builddir
); CONFIG_FILES
=.
/lib
/ext2fs
/ext2_types.h .
/config.status
119 lib
/blkid
/blkid_types.h
: $(DEP_SUBSTITUTE
) asm_types.h \
120 $(srcdir)/lib
/blkid
/blkid_types.h.in
121 cd
$(top_builddir
); CONFIG_FILES
=.
/lib
/blkid
/blkid_types.h .
/config.status
123 lib
/uuid
/uuid_types.h
: $(DEP_SUBSTITUTE
) asm_types.h \
124 $(srcdir)/lib
/uuid
/uuid_types.h.in
125 cd
$(top_builddir
); CONFIG_FILES
=.
/lib
/uuid
/uuid_types.h .
/config.status
128 $(RM
) -f \
#* *~ *.orig core MAKELOG
130 clean-local
: mostlyclean-local
132 distclean-local
: clean-local
133 $(RM
) -f
$(SUBS
) $(SUBST_CONF
) \
134 config.status config.log config.cache MCONFIG Makefile \
135 $(srcdir)/TAGS
$(srcdir)/Makefile.in.old
137 realclean-local
: distclean-local
140 check:: subs check-recursive