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@
|
|
|
|
|
1997-04-29 22:51:31 +08:00
|
|
|
LIB_SUBDIRS=lib/et lib/ss lib/ext2fs lib/e2p lib/uuid
|
1997-06-08 04:42:58 +08:00
|
|
|
PROG_SUBDIRS=e2fsck debugfs misc resize tests/progs
|
1999-07-20 00:18:52 +08:00
|
|
|
SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
|
1997-04-26 21:58:21 +08:00
|
|
|
|
1999-01-04 15:39:19 +08:00
|
|
|
SUBS= include/asm/types.h
|
1997-04-26 21:58:21 +08:00
|
|
|
|
1997-04-30 00:15:03 +08:00
|
|
|
TAR=tar
|
|
|
|
|
2000-05-26 07:28:50 +08:00
|
|
|
all:: $(SUBS)
|
|
|
|
$(MAKE) libs
|
|
|
|
$(MAKE) progs
|
|
|
|
$(MAKE) docs
|
1997-04-29 22:28:00 +08:00
|
|
|
|
|
|
|
progs: $(SUBS) all-progs-recursive
|
|
|
|
libs: $(SUBS) all-libs-recursive
|
1997-04-26 21:58:21 +08:00
|
|
|
|
1997-04-30 00:15:03 +08:00
|
|
|
docs:
|
2000-05-26 07:28:50 +08:00
|
|
|
cd doc && $(MAKE) libext2fs.info
|
1997-04-30 00:15:03 +08:00
|
|
|
|
|
|
|
install-doc-libs:
|
2000-05-26 07:28:50 +08:00
|
|
|
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:
|
2000-05-26 07:28:50 +08:00
|
|
|
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:
|
2000-05-26 07:28:50 +08:00
|
|
|
cd doc && $(MAKE) clean
|
1999-07-20 05:02:11 +08:00
|
|
|
|
|
|
|
distclean-doc:
|
2000-05-26 07:28:50 +08:00
|
|
|
cd doc && $(MAKE) distclean
|
1999-07-20 05:02:11 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
install: all-libs-recursive install-progs-recursive \
|
1997-04-30 00:15:03 +08:00
|
|
|
install-shlibs-libs-recursive install-doc-libs
|
2000-04-03 21:17:59 +08:00
|
|
|
# export MANPATH=$(DESTDIR)$(mandir); $(srcdir)/install-utils/compile_manpages
|
1997-04-26 21:58:21 +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: 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
|
|
|
|
|
1999-07-04 04:25:58 +08:00
|
|
|
TAGS clean-recursive distclean-recursive depend-recursive \
|
1997-04-26 21:58:21 +08:00
|
|
|
mostlyclean-recursive realclean-recursive install-recursive:
|
|
|
|
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
|
|
|
|
|
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
|
|
|
all-progs-recursive install-progs-recursive uninstall-progs-recursive:
|
1997-04-26 21:58:21 +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
|
|
|
|
|
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
|
|
|
all-libs-recursive install-libs-recursive uninstall-libs-recursive install-shlibs-libs-recursive uninstall-shlibs-libs-recursive:
|
1997-04-26 21:58:21 +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
|
1997-04-29 22:28:00 +08:00
|
|
|
$(RM) -f $(SUBS)
|
|
|
|
|
1999-07-20 05:02:11 +08:00
|
|
|
distclean: distclean-doc distclean-recursive 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
|
|
|
|
|
1999-01-04 15:39:19 +08:00
|
|
|
include/asm/types.h: $(DEP_SUBSTITUTE) $(srcdir)/include/asm/types.h.in
|
|
|
|
$(SUBSTITUTE) $(srcdir)/include/asm/types.h.in \
|
|
|
|
> include/asm/types.h
|
1997-04-29 22:28:00 +08:00
|
|
|
|
1997-04-26 21:58:21 +08:00
|
|
|
mostlyclean-local:
|
|
|
|
$(RM) -f \#* *~ 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
|
1999-11-20 02:42:30 +08:00
|
|
|
$(RM) -f include/asm/types.h $(SUBST_CONF) \
|
|
|
|
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
|
|
|
|
|
|
|
|
check:
|
2000-05-26 07:28:50 +08:00
|
|
|
cd tests && $(MAKE) check
|
1997-04-26 21:58:21 +08:00
|
|
|
|
1997-04-26 22:37:06 +08:00
|
|
|
distribution_tar_file:
|
1999-07-19 23:52:58 +08:00
|
|
|
$(RM) -rf /tmp/dest
|
2000-05-26 07:28:50 +08:00
|
|
|
$(MAKE) DESTDIR=/tmp/dest install
|
1997-04-26 22:37:06 +08:00
|
|
|
cp -r $(srcdir)/README $(srcdir)/install-utils /tmp/dest
|
1999-07-19 23:52:58 +08:00
|
|
|
$(RM) -rf /tmp/dest/install-utils/CVS /tmp/dest/install-utils/ChangeLog
|
1997-04-26 22:37:06 +08:00
|
|
|
cp $(srcdir)/INSTALL.@BINARY_TYPE@ /tmp/dest/INSTALL
|
2000-04-03 21:17:59 +08:00
|
|
|
(cd /tmp/dest && $(TAR) cf - . ) | gzip -9 \
|
1997-04-26 22:37:06 +08:00
|
|
|
> e2fsprogs-@E2FSPROGS_VERSION@-@BINARY_TYPE@.tar.gz
|
|
|
|
|
1997-04-30 01:39:27 +08:00
|
|
|
SRCROOT = `echo e2fsprogs-@E2FSPROGS_VERSION@ | sed -e 's/-WIP//' \
|
1997-06-14 15:28:44 +08:00
|
|
|
-e 's/pre-//' -e 's/-PLUS//'`
|
1997-04-29 22:51:31 +08:00
|
|
|
|
|
|
|
$(srcdir)/.exclude-file:
|
1997-06-17 13:41:36 +08:00
|
|
|
a=$(SRCROOT); \
|
2000-04-03 21:17:59 +08:00
|
|
|
(cd $(srcdir)/.. && find e2fsprogs \( -name \*~ -o -name \*.orig \
|
1999-01-13 07:32:52 +08:00
|
|
|
-o -name CVS -o -name \*.rej -o -name Makefile.pq \
|
Many files:
unix.c (main): If compression is enabled on the filesystem, print a
warning message (for now).
message.c: Add new compression shortcut: @c == compress
problem.c, problem.h (PR_1_COMPR_SET): Add new error code.
pass1.c (check_blocks): If the inode has EXT2_COMPRBLK_FL flag set,
check to see if the filesystem supports compression. If it does pass
this information down to process_block() so it can treat the
compressed block flag words correctly. If not, offer to clear the
flag, since it shouldn't be set.
(process_block): If an inode has the compressed inode flag set, allow
EXT2FS_COMPRESSED_BLKADDR.
pass1b.c (process_pass1b_block, delete_file_block, clone_file_block):
pass2.c (deallocate_inode_block): Use HOLE_BLKADDR to check to see if
the block can be skipped.
ChangeLog, Makefile.in:
Makefile.in: Exclude the internationalization files from being
distributed.
ChangeLog, configure, configure.in:
configure.in: Add support for --enable-compression. This is
experimental code only for now, which is why it's under --enable test.
Once it's stable, it will always be compiled in.
TODO:
Commit additional TODO items.
2000-02-11 23:55:07 +08:00
|
|
|
-o -name TAGS -o -name \*.old -o -name \*.gmo \
|
1999-01-13 07:32:52 +08:00
|
|
|
-o -name TODO -o -name changed-files -o -name .#\* \) \
|
|
|
|
-print) | sed -e "s/e2fsprogs/$$a/" > $(srcdir)/.exclude-file
|
1997-04-29 22:51:31 +08:00
|
|
|
echo "$(SRCROOT)/build" >> $(srcdir)/.exclude-file
|
1997-04-30 00:15:03 +08:00
|
|
|
echo "$(SRCROOT)/rpm.log" >> $(srcdir)/.exclude-file
|
1997-10-20 09:23:07 +08:00
|
|
|
echo "$(SRCROOT)/powerquest" >> $(srcdir)/.exclude-file
|
1997-04-29 22:51:31 +08:00
|
|
|
echo "$(SRCROOT)/.exclude-file" >> $(srcdir)/.exclude-file
|
Many files:
unix.c (main): If compression is enabled on the filesystem, print a
warning message (for now).
message.c: Add new compression shortcut: @c == compress
problem.c, problem.h (PR_1_COMPR_SET): Add new error code.
pass1.c (check_blocks): If the inode has EXT2_COMPRBLK_FL flag set,
check to see if the filesystem supports compression. If it does pass
this information down to process_block() so it can treat the
compressed block flag words correctly. If not, offer to clear the
flag, since it shouldn't be set.
(process_block): If an inode has the compressed inode flag set, allow
EXT2FS_COMPRESSED_BLKADDR.
pass1b.c (process_pass1b_block, delete_file_block, clone_file_block):
pass2.c (deallocate_inode_block): Use HOLE_BLKADDR to check to see if
the block can be skipped.
ChangeLog, Makefile.in:
Makefile.in: Exclude the internationalization files from being
distributed.
ChangeLog, configure, configure.in:
configure.in: Add support for --enable-compression. This is
experimental code only for now, which is why it's under --enable test.
Once it's stable, it will always be compiled in.
TODO:
Commit additional TODO items.
2000-02-11 23:55:07 +08:00
|
|
|
echo "$(SRCROOT)/po/stamp-cat-id" >> $(srcdir)/.exclude-file
|
|
|
|
echo "$(SRCROOT)/po/cat-id-tbl.c" >> $(srcdir)/.exclude-file
|
1997-04-29 22:51:31 +08:00
|
|
|
echo $(SRCROOT)/e2fsprogs-@E2FSPROGS_VERSION@.tar.gz \
|
|
|
|
>> $(srcdir)/.exclude-file
|
1998-03-30 09:11:44 +08:00
|
|
|
|
1997-04-29 22:51:31 +08:00
|
|
|
source_tar_file: $(srcdir)/.exclude-file
|
2000-04-03 21:17:59 +08:00
|
|
|
cd $(srcdir)/.. && a=$(SRCROOT); rm -f $$a ; ln -sf e2fsprogs $$a ; \
|
1997-05-09 10:43:38 +08:00
|
|
|
$(TAR) -c -h -v -f - \
|
|
|
|
-X $$a/.exclude-file $$a | \
|
2000-04-03 21:17:59 +08:00
|
|
|
gzip -9 > e2fsprogs-@E2FSPROGS_VERSION@.tar.gz
|
1997-04-29 22:51:31 +08:00
|
|
|
rm -f $(srcdir)/.exclude-file
|