2 top_srcdir
= @top_srcdir@
9 CHECK_OPTS
=-Wsparse-all
-Wno-transparent-union
-Wno-return-void
-Wno-undef
-Wno-non-pointer-null
11 CHECK_CMD
=$(CHECK
) $(CHECK_OPTS
) -Wbitwise
-D__CHECK_ENDIAN__
14 CHECK_CMD
=$(CHECK
) $(CHECK_OPTS
)
25 @RESIZER_CMT@RESIZE_DIR
= resize
26 @DEBUGFS_CMT@DEBUGFS_DIR
= debugfs
27 @UUID_CMT@UUID_LIB_SUBDIR
= lib
/uuid
28 @BLKID_CMT@BLKID_LIB_SUBDIR
= lib
/blkid
29 QUOTA_LIB_SUBDIR
= lib
/quota
31 LIB_SUBDIRS
=lib
/et lib
/ss lib
/e2p
$(UUID_LIB_SUBDIR
) lib
/ext2fs
$(BLKID_LIB_SUBDIR
) $(QUOTA_LIB_SUBDIR
) intl
32 PROG_SUBDIRS
=e2fsck
$(DEBUGFS_DIR
) misc
$(RESIZE_DIR
) tests
/progs po
33 SUBDIRS
=util
$(LIB_SUBDIRS
) $(PROG_SUBDIRS
) tests
35 SUBS
= util
/subst.conf lib
/config.h lib
/dirpaths.h \
36 lib
/ext2fs
/ext2_types.h lib
/blkid
/blkid_types.h lib
/uuid
/uuid_types.h
45 subs
: $(DEP_SUBSTITUTE
)
46 @for i in
$(SUBS
) ; do if
test -d
`dirname $$i` ; \
47 then
$(MAKE
) $$i || exit
$$?
; fi
; done
48 @
(if
test -d lib
/et
; then cd lib
/et
&& $(MAKE
) compile_et
; fi
)
49 @
(if
test -d lib
/ext2fs
; then cd lib
/ext2fs
&& $(MAKE
) ext2_err.h
; fi
)
51 progs
: all-progs-recursive
52 libs
: all-libs-recursive
53 all-progs-recursive all-libs-recursive
: subs
55 e2fsprogs.spec
: $(DEP_SUBSTITUTE
) e2fsprogs.spec.in
56 cd
$(top_builddir
); CONFIG_FILES
=.
/e2fsprogs.spec .
/config.status
62 -@
test -d doc
&& cd doc
&& $(MAKE
) libext2fs.
info
65 -@
test -d doc
&& cd doc
&& $(MAKE
) install-doc-libs
68 -@
test -d doc
&& cd doc
&& $(MAKE
) uninstall-doc-libs
71 -@
test -d doc
&& cd doc
&& $(MAKE
) clean
74 -test -d doc
&& cd doc
&& $(MAKE
) distclean
76 install: subs all-libs-recursive install-progs-recursive \
77 install-shlibs-libs-recursive install-doc-libs
78 if
test ! -d e2fsck
&& test ! -d debugfs
&& test ! -d misc
&& test ! -d ext2ed
; then
$(MAKE
) install-libs
; fi
80 install-strip
: subs all-libs-recursive install-strip-progs-recursive \
81 install-shlibs-strip-libs-recursive install-doc-libs
83 uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
85 install-libs
: install-libs-recursive
87 uninstall-libs
: uninstall-libs-recursive
91 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
92 mostlyclean-recursive realclean-recursive
:
93 @for subdir in
$(SUBDIRS
); do \
94 if
test -d
$$subdir ; then \
95 target
=`echo $@|$(SED) 's/-recursive//'`; \
96 echo making
$$target in
$$subdir; \
97 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
101 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
102 uninstall-progs-recursive
: all-libs-recursive
103 @for subdir in
$(PROG_SUBDIRS
); do \
104 if
test -d
$$subdir ; then \
105 target
=`echo $@|$(SED) 's/-progs-recursive//'`; \
106 echo making
$$target in
$$subdir; \
107 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
111 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
112 uninstall-libs-recursive install-shlibs-libs-recursive \
113 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive
:
114 @for subdir in
$(LIB_SUBDIRS
); do \
115 if
test -d
$$subdir ; then \
116 target
=`echo $@|$(SED) 's/-libs-recursive//'`; \
117 echo making
$$target in
$$subdir; \
118 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
122 mostlyclean: mostlyclean-recursive mostlyclean-local
124 clean: clean-recursive clean-local clean-doc
127 distclean: distclean-doc distclean-recursive
128 $(RM
) -rf autom4te.cache e2fsprogs.spec ext2ed
/Makefile po
/stamp-po
129 $(MAKE
) distclean-local
131 realclean: realclean-recursive realclean-local
133 depend
:: depend-recursive
135 lib
/ext2fs
/ext2_types.h
: $(DEP_SUBSTITUTE
) asm_types.h \
136 $(srcdir)/lib
/ext2fs
/ext2_types.h.in
137 cd
$(top_builddir
); CONFIG_FILES
=.
/lib
/ext2fs
/ext2_types.h .
/config.status
139 lib
/blkid
/blkid_types.h
: $(DEP_SUBSTITUTE
) asm_types.h \
140 $(srcdir)/lib
/blkid
/blkid_types.h.in
141 cd
$(top_builddir
); CONFIG_FILES
=.
/lib
/blkid
/blkid_types.h .
/config.status
143 lib
/uuid
/uuid_types.h
: $(DEP_SUBSTITUTE
) asm_types.h \
144 $(srcdir)/lib
/uuid
/uuid_types.h.in
145 cd
$(top_builddir
); CONFIG_FILES
=.
/lib
/uuid
/uuid_types.h .
/config.status
148 $(RM
) -f \
#* *~ *.orig core MAKELOG
150 clean-local
: mostlyclean-local
152 distclean-local
: clean-local
153 $(RM
) -f
$(SUBS
) $(SUBST_CONF
) \
154 config.status config.log config.cache MCONFIG Makefile \
155 $(srcdir)/TAGS
$(srcdir)/Makefile.in.old
157 realclean-local
: distclean-local
160 check:: all check-recursive