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
|
|
|
|
|
|
|
|
all:: $(SUBS) libs progs 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:
|
1998-03-30 09:11:44 +08:00
|
|
|
(cd doc && make libext2fs.info)
|
1997-04-30 00:15:03 +08:00
|
|
|
|
|
|
|
install-doc-libs:
|
1998-03-30 09:11:44 +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:
|
|
|
|
(cd doc && make uninstall-doc-libs)
|
|
|
|
|
1999-07-20 05:02:11 +08:00
|
|
|
clean-doc:
|
|
|
|
(cd doc && make clean)
|
|
|
|
|
|
|
|
distclean-doc:
|
|
|
|
(cd doc && make distclean)
|
|
|
|
|
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
|
1998-03-30 09:11:44 +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:
|
|
|
|
(cd tests; make check)
|
|
|
|
|
1997-04-26 22:37:06 +08:00
|
|
|
distribution_tar_file:
|
1999-07-19 23:52:58 +08:00
|
|
|
$(RM) -rf /tmp/dest
|
1997-04-26 22:37:06 +08:00
|
|
|
make DESTDIR=/tmp/dest install
|
|
|
|
cd ..
|
|
|
|
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
|
1997-04-30 00:15:03 +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); \
|
1997-05-09 10:43:38 +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 \
|
1999-11-20 02:42:30 +08:00
|
|
|
-o -name TAGS -o -name \*.old \
|
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-06-08 04:42:58 +08:00
|
|
|
echo "$(SRCROOT)/resize" >> $(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
|
|
|
|
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
|
1997-05-09 10:43:38 +08:00
|
|
|
(cd $(srcdir)/..; a=$(SRCROOT); rm -f $$a ; ln -sf e2fsprogs $$a ; \
|
|
|
|
$(TAR) -c -h -v -f - \
|
|
|
|
-X $$a/.exclude-file $$a | \
|
1997-04-29 22:51:31 +08:00
|
|
|
gzip -9 > e2fsprogs-@E2FSPROGS_VERSION@.tar.gz)
|
|
|
|
rm -f $(srcdir)/.exclude-file
|