1997-04-26 21:58:21 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
top_builddir = .
|
1997-04-29 22:51:31 +08:00
|
|
|
my_dir = .
|
1997-04-26 21:58:21 +08:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
|
|
|
@MCONFIG@
|
|
|
|
|
2008-07-15 10:38:01 +08:00
|
|
|
% : %.sh
|
|
|
|
|
2001-06-14 06:16:47 +08:00
|
|
|
@RESIZER_CMT@RESIZE_DIR= resize
|
|
|
|
@DEBUGFS_CMT@DEBUGFS_DIR= debugfs
|
|
|
|
|
2007-08-04 08:10:46 +08:00
|
|
|
LIB_SUBDIRS=lib/et lib/ss lib/e2p lib/uuid lib/ext2fs lib/blkid intl
|
2004-11-20 06:25:27 +08:00
|
|
|
PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po
|
1999-07-20 00:18:52 +08:00
|
|
|
SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
|
1997-04-26 21:58:21 +08:00
|
|
|
|
2003-03-02 15:07:14 +08:00
|
|
|
SUBS= lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h
|
1997-04-26 21:58:21 +08:00
|
|
|
|
1997-04-30 00:15:03 +08:00
|
|
|
TAR=tar
|
|
|
|
|
2003-03-14 15:42:42 +08:00
|
|
|
all:: subs
|
2000-05-26 07:28:50 +08:00
|
|
|
$(MAKE) libs
|
|
|
|
$(MAKE) progs
|
|
|
|
$(MAKE) docs
|
1997-04-29 22:28:00 +08:00
|
|
|
|
2008-10-11 02:00:46 +08:00
|
|
|
subs: $(DEP_SUBSTITUTE)
|
2008-09-02 05:59:01 +08:00
|
|
|
@for i in $(SUBS) ; do if test -d `dirname $$i` ; \
|
|
|
|
then $(MAKE) $$i || exit $$? ; fi ; done
|
|
|
|
@(if test -d lib/et ; then cd lib/et && $(MAKE) compile_et; fi)
|
|
|
|
@(if test -d lib/ext2fs ; then cd lib/ext2fs && $(MAKE) ext2_err.h; fi)
|
2003-03-02 15:07:14 +08:00
|
|
|
|
|
|
|
progs: subs all-progs-recursive
|
|
|
|
libs: subs all-libs-recursive
|
1997-04-26 21:58:21 +08:00
|
|
|
|
2007-05-23 04:20:14 +08:00
|
|
|
e2fsprogs.spec: $(DEP_SUBSTITUTE) e2fsprogs.spec.in
|
|
|
|
cd $(top_builddir); CONFIG_FILES=./e2fsprogs.spec ./config.status
|
|
|
|
|
|
|
|
rpm: e2fsprogs.spec
|
2006-06-21 12:05:49 +08:00
|
|
|
sh contrib/build-rpm
|
|
|
|
|
1997-04-30 00:15:03 +08:00
|
|
|
docs:
|
2004-11-30 23:52:27 +08:00
|
|
|
-@test -d doc && cd doc && $(MAKE) libext2fs.info
|
1997-04-30 00:15:03 +08:00
|
|
|
|
|
|
|
install-doc-libs:
|
2004-11-30 23:52:27 +08:00
|
|
|
-@test -d doc && cd doc && $(MAKE) install-doc-libs
|
1997-04-30 00:15:03 +08:00
|
|
|
|
Many files:
configure.in: Change how the installation directions are selected.
Previously, we had prefix and usr_prefix, where prefix was '' and
usr_prefix was /usr, and we then defined bindir, ubindir, libdir,
ulibdir, etc. in terms of that. In autoconf 2.12, it's possible to
override bindir, libdir, etc., and so in order to make our
installation directory makefile variables more in line with autoconf
2.12, I've changed all of the various makefiles to use prefix and
root_prefix, where the default Linux definitions are /usr and '',
respectively. What used to be bindir is now root_bindir, and what
used to be ubindir, is now bindir.
MCONFIG.in: Change directories to match with new installation
directory convention (see above). Add Makefile
dependencies for makefile fragments, and define
DEP_LIB_MAKEFILES which library makefiles can use to
define DEP_MAKEFILES, so that the library makefiles will
get regenerated when the makefile fragments change.
Remove the cat?dir variables, since we aren't creating
those directories any more.
Makefile.in: Add top-level uninstall targets.
e2fsprogs-1.12.spec: Add to the RPM package the e2label man page, and
to reflect that fact that we now compile_et and mk_cmds for the
development package.
ChangeLog, Makefile.in:
Makefile.in: Add uninstall target (which is a just a no-op).
version.h, RELEASE-NOTES:
Update to interim version numbers for release purposes.
1998-04-04 00:12:25 +08:00
|
|
|
uninstall-doc-libs:
|
2004-11-30 23:52:27 +08:00
|
|
|
-@test -d doc && cd doc && $(MAKE) uninstall-doc-libs
|
Many files:
configure.in: Change how the installation directions are selected.
Previously, we had prefix and usr_prefix, where prefix was '' and
usr_prefix was /usr, and we then defined bindir, ubindir, libdir,
ulibdir, etc. in terms of that. In autoconf 2.12, it's possible to
override bindir, libdir, etc., and so in order to make our
installation directory makefile variables more in line with autoconf
2.12, I've changed all of the various makefiles to use prefix and
root_prefix, where the default Linux definitions are /usr and '',
respectively. What used to be bindir is now root_bindir, and what
used to be ubindir, is now bindir.
MCONFIG.in: Change directories to match with new installation
directory convention (see above). Add Makefile
dependencies for makefile fragments, and define
DEP_LIB_MAKEFILES which library makefiles can use to
define DEP_MAKEFILES, so that the library makefiles will
get regenerated when the makefile fragments change.
Remove the cat?dir variables, since we aren't creating
those directories any more.
Makefile.in: Add top-level uninstall targets.
e2fsprogs-1.12.spec: Add to the RPM package the e2label man page, and
to reflect that fact that we now compile_et and mk_cmds for the
development package.
ChangeLog, Makefile.in:
Makefile.in: Add uninstall target (which is a just a no-op).
version.h, RELEASE-NOTES:
Update to interim version numbers for release purposes.
1998-04-04 00:12:25 +08:00
|
|
|
|
1999-07-20 05:02:11 +08:00
|
|
|
clean-doc:
|
2004-11-30 23:52:27 +08:00
|
|
|
-@test -d doc && cd doc && $(MAKE) clean
|
1999-07-20 05:02:11 +08:00
|
|
|
|
|
|
|
distclean-doc:
|
2003-03-02 15:07:14 +08:00
|
|
|
-test -d doc && cd doc && $(MAKE) distclean
|
1999-07-20 05:02:11 +08:00
|
|
|
|
2003-03-02 15:07:14 +08:00
|
|
|
install: subs all-libs-recursive install-progs-recursive \
|
2004-12-16 00:28:55 +08:00
|
|
|
install-shlibs-libs-recursive install-doc-libs
|
2004-09-18 07:54:22 +08:00
|
|
|
if test ! -d e2fsck && test ! -d debugfs && test ! -d misc && test ! -d ext2ed ; then $(MAKE) install-libs ; fi
|
1997-04-26 21:58:21 +08:00
|
|
|
|
2004-12-16 00:28:55 +08:00
|
|
|
install-strip: subs all-libs-recursive install-strip-progs-recursive \
|
|
|
|
install-shlibs-strip-libs-recursive install-doc-libs
|
|
|
|
|
Many files:
configure.in: Change how the installation directions are selected.
Previously, we had prefix and usr_prefix, where prefix was '' and
usr_prefix was /usr, and we then defined bindir, ubindir, libdir,
ulibdir, etc. in terms of that. In autoconf 2.12, it's possible to
override bindir, libdir, etc., and so in order to make our
installation directory makefile variables more in line with autoconf
2.12, I've changed all of the various makefiles to use prefix and
root_prefix, where the default Linux definitions are /usr and '',
respectively. What used to be bindir is now root_bindir, and what
used to be ubindir, is now bindir.
MCONFIG.in: Change directories to match with new installation
directory convention (see above). Add Makefile
dependencies for makefile fragments, and define
DEP_LIB_MAKEFILES which library makefiles can use to
define DEP_MAKEFILES, so that the library makefiles will
get regenerated when the makefile fragments change.
Remove the cat?dir variables, since we aren't creating
those directories any more.
Makefile.in: Add top-level uninstall targets.
e2fsprogs-1.12.spec: Add to the RPM package the e2label man page, and
to reflect that fact that we now compile_et and mk_cmds for the
development package.
ChangeLog, Makefile.in:
Makefile.in: Add uninstall target (which is a just a no-op).
version.h, RELEASE-NOTES:
Update to interim version numbers for release purposes.
1998-04-04 00:12:25 +08:00
|
|
|
uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
|
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
install-libs: install-libs-recursive
|
|
|
|
|
Many files:
configure.in: Change how the installation directions are selected.
Previously, we had prefix and usr_prefix, where prefix was '' and
usr_prefix was /usr, and we then defined bindir, ubindir, libdir,
ulibdir, etc. in terms of that. In autoconf 2.12, it's possible to
override bindir, libdir, etc., and so in order to make our
installation directory makefile variables more in line with autoconf
2.12, I've changed all of the various makefiles to use prefix and
root_prefix, where the default Linux definitions are /usr and '',
respectively. What used to be bindir is now root_bindir, and what
used to be ubindir, is now bindir.
MCONFIG.in: Change directories to match with new installation
directory convention (see above). Add Makefile
dependencies for makefile fragments, and define
DEP_LIB_MAKEFILES which library makefiles can use to
define DEP_MAKEFILES, so that the library makefiles will
get regenerated when the makefile fragments change.
Remove the cat?dir variables, since we aren't creating
those directories any more.
Makefile.in: Add top-level uninstall targets.
e2fsprogs-1.12.spec: Add to the RPM package the e2label man page, and
to reflect that fact that we now compile_et and mk_cmds for the
development package.
ChangeLog, Makefile.in:
Makefile.in: Add uninstall target (which is a just a no-op).
version.h, RELEASE-NOTES:
Update to interim version numbers for release purposes.
1998-04-04 00:12:25 +08:00
|
|
|
uninstall-libs: uninstall-libs-recursive
|
|
|
|
|
2000-12-09 10:37:33 +08:00
|
|
|
TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
|
2004-12-16 00:28:55 +08:00
|
|
|
mostlyclean-recursive realclean-recursive:
|
2004-11-30 23:52:27 +08:00
|
|
|
@for subdir in $(SUBDIRS); do \
|
1997-06-08 04:42:58 +08:00
|
|
|
if test -d $$subdir ; then \
|
|
|
|
target=`echo $@|$(SED) 's/-recursive//'`; \
|
|
|
|
echo making $$target in $$subdir; \
|
|
|
|
(cd $$subdir && $(MAKE) $$target) || exit 1; \
|
|
|
|
fi ; \
|
1997-04-26 21:58:21 +08:00
|
|
|
done
|
|
|
|
|
2004-12-16 00:28:55 +08:00
|
|
|
all-progs-recursive install-progs-recursive install-strip-progs-recursive \
|
2008-02-29 09:41:17 +08:00
|
|
|
uninstall-progs-recursive: all-libs-recursive
|
2004-11-30 23:52:27 +08:00
|
|
|
@for subdir in $(PROG_SUBDIRS); do \
|
1997-06-08 04:42:58 +08:00
|
|
|
if test -d $$subdir ; then \
|
|
|
|
target=`echo $@|$(SED) 's/-progs-recursive//'`; \
|
|
|
|
echo making $$target in $$subdir; \
|
|
|
|
(cd $$subdir && $(MAKE) $$target) || exit 1; \
|
|
|
|
fi ; \
|
1997-04-26 21:58:21 +08:00
|
|
|
done
|
|
|
|
|
2004-12-16 00:28:55 +08:00
|
|
|
all-libs-recursive install-libs-recursive install-strip-libs-recursive \
|
|
|
|
uninstall-libs-recursive install-shlibs-libs-recursive \
|
|
|
|
install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
|
2004-11-30 23:52:27 +08:00
|
|
|
@for subdir in $(LIB_SUBDIRS); do \
|
1997-06-08 04:42:58 +08:00
|
|
|
if test -d $$subdir ; then \
|
|
|
|
target=`echo $@|$(SED) 's/-libs-recursive//'`; \
|
|
|
|
echo making $$target in $$subdir; \
|
|
|
|
(cd $$subdir && $(MAKE) $$target) || exit 1; \
|
|
|
|
fi ; \
|
1997-04-26 21:58:21 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
mostlyclean: mostlyclean-recursive mostlyclean-local
|
1997-04-29 22:28:00 +08:00
|
|
|
|
1999-07-20 05:02:11 +08:00
|
|
|
clean: clean-recursive clean-local clean-doc
|
2004-12-01 11:06:27 +08:00
|
|
|
$(RM) -f $(SUBS)
|
1997-04-29 22:28:00 +08:00
|
|
|
|
2008-01-02 06:00:39 +08:00
|
|
|
distclean: distclean-doc distclean-recursive
|
2004-12-01 11:06:27 +08:00
|
|
|
$(RM) -rf autom4te.cache e2fsprogs.spec ext2ed/Makefile po/stamp-po
|
2008-01-02 06:00:39 +08:00
|
|
|
$(MAKE) distclean-local
|
1997-04-29 22:28:00 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
realclean: realclean-recursive realclean-local
|
|
|
|
|
1999-07-04 04:25:58 +08:00
|
|
|
depend:: depend-recursive
|
|
|
|
|
2006-04-09 20:41:55 +08:00
|
|
|
lib/ext2fs/ext2_types.h: $(DEP_SUBSTITUTE) asm_types.h \
|
|
|
|
$(srcdir)/lib/ext2fs/ext2_types.h.in
|
|
|
|
cd $(top_builddir); CONFIG_FILES=./lib/ext2fs/ext2_types.h ./config.status
|
|
|
|
|
|
|
|
lib/blkid/blkid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
|
|
|
|
$(srcdir)/lib/blkid/blkid_types.h.in
|
|
|
|
cd $(top_builddir); CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status
|
|
|
|
|
|
|
|
lib/uuid/uuid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
|
|
|
|
$(srcdir)/lib/uuid/uuid_types.h.in
|
|
|
|
cd $(top_builddir); CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status
|
2003-03-02 15:07:14 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
mostlyclean-local:
|
2001-08-04 15:02:34 +08:00
|
|
|
$(RM) -f \#* *~ *.orig core MAKELOG
|
1999-11-20 02:42:30 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
clean-local: mostlyclean-local
|
1999-11-20 02:42:30 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
distclean-local: clean-local
|
2001-08-04 15:02:34 +08:00
|
|
|
$(RM) -f $(SUBS) $(SUBST_CONF) \
|
1999-11-20 02:42:30 +08:00
|
|
|
config.status config.log config.cache MCONFIG Makefile \
|
|
|
|
$(srcdir)/TAGS $(srcdir)/Makefile.in.old
|
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
realclean-local: distclean-local
|
|
|
|
$(RM) -f configure
|
|
|
|
|
2003-03-02 15:07:14 +08:00
|
|
|
check:: subs check-recursive
|
1997-04-26 21:58:21 +08:00
|
|
|
|