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
|
2009-05-14 20:03:25 +08:00
|
|
|
@UUID_CMT@UUID_LIB_SUBDIR= lib/uuid
|
2009-04-22 21:18:30 +08:00
|
|
|
@BLKID_CMT@BLKID_LIB_SUBDIR= lib/blkid
|
2018-03-24 09:57:09 +08:00
|
|
|
@E2SCRUB_CMT@E2SCRUB_DIR= scrub
|
2018-08-18 23:19:25 +08:00
|
|
|
@ALL_CMT@SUPPORT_LIB_SUBDIR= lib/support
|
|
|
|
@ALL_CMT@E2P_LIB_SUBDIR= lib/e2p
|
|
|
|
@ALL_CMT@EXT2FS_LIB_SUBDIR= lib/ext2fs
|
|
|
|
|
|
|
|
LIB_SUBDIRS=lib/et lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \
|
|
|
|
$(BLKID_LIB_SUBDIR) $(SUPPORT_LIB_SUBDIR) $(EXT2FS_LIB_SUBDIR) intl
|
2001-06-14 06:16:47 +08:00
|
|
|
|
2018-08-19 11:22:53 +08:00
|
|
|
PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po \
|
|
|
|
$(E2SCRUB_DIR)
|
2001-06-14 06:16:47 +08:00
|
|
|
|
1999-07-20 00:18:52 +08:00
|
|
|
SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
|
1997-04-26 21:58:21 +08:00
|
|
|
|
Fix build system to be compatible with BSD pmake
This fixes a number of incompatibilities which caused maint branch to
fail to build on on FreeBSD. Also fix the Makefile in the tests
directory so that "make -jN check" works correctly on FreeBSD.
Previously the Makefile in the tests directory used a construct which
was specific to GNU Make, which which silently expanded to an empty
list, which caused "make check" to be a no-op when running using BSD's
pmake. This Makefile has been changed to use the != macro assignment
syntax which is common to GNU make and BSD pmake. It's technically
not completely portable (it will not be recognized by Solaris's ccs
make, for example), but most other operating systems ship GNU make
(Solaris, AIX), or BSD pmake (*BSD, Mac OS) as either the primary or
alternative make utility that this should an acceptable compromise,
since it makes running all of tests using something like "make -j8
check" or "make -j16 check" run *much* faster.
There are still some caveats if using BSD pmake; in particular, if the
configure script is run on a system which has GNU make (installed as
gmake on FreeBSD for example), the configure script will find it, and
enable some GNU make features in the Makefile, and the generated
makefiles *must* be built using gmake. However, if isolated build
jail / chroot is used which only has pmake, the Makefiles should now
work with pmake.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2016-01-02 10:44:12 +08:00
|
|
|
SUBS= util/subst.conf lib/config.h $(top_builddir)/lib/dirpaths.h \
|
2011-09-19 05:34:37 +08:00
|
|
|
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
|
2018-08-18 23:19:25 +08:00
|
|
|
@ALL_CMT@ $(MAKE) progs
|
|
|
|
@ALL_CMT@ $(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)
|
2016-03-07 09:37:49 +08:00
|
|
|
@(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi)
|
2003-03-02 15:07:14 +08:00
|
|
|
|
2010-05-18 11:48:52 +08:00
|
|
|
progs: all-progs-recursive
|
|
|
|
libs: all-libs-recursive
|
2018-08-23 01:42:23 +08:00
|
|
|
all-progs-recursive all-libs-recursive:: subs
|
1997-04-26 21:58:21 +08:00
|
|
|
|
2018-08-18 22:42:44 +08:00
|
|
|
rpm:
|
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
|
2018-08-25 05:12:20 +08:00
|
|
|
@SUBSET_CMT@ $(MAKE) install-libs
|
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
|
|
|
|
|
2014-02-23 13:17:09 +08:00
|
|
|
coverage.txt: coverage.txt-recursive
|
|
|
|
|
2012-05-12 07:14:30 +08:00
|
|
|
check-recursive: all
|
|
|
|
|
2017-04-26 22:07:18 +08:00
|
|
|
TAGS clean-recursive distclean-recursive depend-recursive fullcheck-recursive \
|
|
|
|
check-recursive mostlyclean-recursive realclean-recursive \
|
|
|
|
coverage.txt-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 \
|
2018-08-23 01:42:23 +08:00
|
|
|
uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
|
|
|
|
|
|
|
|
|
|
|
|
@ALL_CMT@all-progs-recursive install-progs-recursive install-strip-progs-recursive \
|
|
|
|
@ALL_CMT@ uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
|
|
|
|
@ALL_CMT@ @for subdir in $(PROG_SUBDIRS); do \
|
|
|
|
@ALL_CMT@ if test -d $$subdir ; then \
|
|
|
|
@ALL_CMT@ target=`echo $@|$(SED) 's/-progs-recursive//'`; \
|
|
|
|
@ALL_CMT@ echo making $$target in $$subdir; \
|
|
|
|
@ALL_CMT@ (cd $$subdir && $(MAKE) $$target) || exit 1; \
|
|
|
|
@ALL_CMT@ fi ; \
|
|
|
|
@ALL_CMT@ done
|
1997-04-26 21:58:21 +08:00
|
|
|
|
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 \
|
2014-02-23 13:17:09 +08:00
|
|
|
install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive \
|
2018-08-23 01:42:23 +08:00
|
|
|
coverage.txt-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
|
|
|
|
2014-02-23 13:17:09 +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
|
2018-08-18 22:42:44 +08:00
|
|
|
$(RM) -rf autom4te.cache ext2ed/Makefile po/stamp-po \
|
2015-07-02 07:40:23 +08:00
|
|
|
asm_types.h config.log public_config.h parse-types.log
|
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
|
|
|
|
|
2011-06-16 10:17:38 +08:00
|
|
|
check:: all check-recursive
|
1997-04-26 21:58:21 +08:00
|
|
|
|
2017-04-26 22:07:18 +08:00
|
|
|
fullcheck:: all fullcheck-recursive
|