2 top_srcdir
= @top_srcdir@
10 @RESIZER_CMT@RESIZE_DIR
= resize
11 @DEBUGFS_CMT@DEBUGFS_DIR
= debugfs
13 LIB_SUBDIRS
=lib
/et lib
/ss lib
/e2p lib
/ext2fs lib
/uuid
# lib/finddev
14 PROG_SUBDIRS
=e2fsck
$(DEBUGFS_DIR
) misc
$(RESIZE_DIR
) tests
/progs
15 SUBDIRS
=util
$(LIB_SUBDIRS
) $(PROG_SUBDIRS
) tests
17 SUBS
= lib
/ext2fs
/ext2_types.h
26 progs
: $(SUBS
) all-progs-recursive
27 libs
: $(SUBS
) all-libs-recursive
30 cd doc
&& $(MAKE
) libext2fs.
info
33 cd doc
&& $(MAKE
) install-doc-libs
36 cd doc
&& $(MAKE
) uninstall-doc-libs
39 cd doc
&& $(MAKE
) clean
42 cd doc
&& $(MAKE
) distclean
44 install: all-libs-recursive install-progs-recursive \
45 install-shlibs-libs-recursive install-doc-libs
46 # export MANPATH=$(DESTDIR)$(mandir); $(srcdir)/install-utils/compile_manpages
48 uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
50 install-libs
: install-libs-recursive
52 uninstall-libs
: uninstall-libs-recursive
54 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
55 mostlyclean-recursive realclean-recursive install-recursive
:
56 for subdir in
$(SUBDIRS
); do \
57 if
test -d
$$subdir ; then \
58 target
=`echo $@|$(SED) 's/-recursive//'`; \
59 echo making
$$target in
$$subdir; \
60 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
64 all-progs-recursive install-progs-recursive uninstall-progs-recursive
:
65 for subdir in
$(PROG_SUBDIRS
); do \
66 if
test -d
$$subdir ; then \
67 target
=`echo $@|$(SED) 's/-progs-recursive//'`; \
68 echo making
$$target in
$$subdir; \
69 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
73 all-libs-recursive install-libs-recursive uninstall-libs-recursive install-shlibs-libs-recursive uninstall-shlibs-libs-recursive
:
74 for subdir in
$(LIB_SUBDIRS
); do \
75 if
test -d
$$subdir ; then \
76 target
=`echo $@|$(SED) 's/-libs-recursive//'`; \
77 echo making
$$target in
$$subdir; \
78 (cd
$$subdir && $(MAKE
) $$target) || exit
1; \
82 mostlyclean: mostlyclean-recursive mostlyclean-local
84 clean: clean-recursive clean-local clean-doc
87 distclean: distclean-doc distclean-recursive distclean-local
89 realclean: realclean-recursive realclean-local
91 depend
:: depend-recursive
93 lib
/ext2fs
/ext2_types.h
: $(DEP_SUBSTITUTE
) $(srcdir)/lib
/ext2fs
/ext2_types.h.in
94 $(SUBSTITUTE
) $(srcdir)/lib
/ext2fs
/ext2_types.h.in \
95 > lib
/ext2fs
/ext2_types.h
98 $(RM
) -f \
#* *~ core MAKELOG
100 clean-local
: mostlyclean-local
102 distclean-local
: clean-local
103 $(RM
) -f lib
/ext2fs
/ext2_types.h
$(SUBST_CONF
) \
104 config.status config.log config.cache MCONFIG Makefile \
105 $(srcdir)/TAGS
$(srcdir)/Makefile.in.old
107 realclean-local
: distclean-local
110 check:: check-recursive
112 distribution_tar_file
:
114 $(MAKE
) DESTDIR
=/tmp
/dest
install
115 cp
-r
$(srcdir)/README
$(srcdir)/install-utils
/tmp
/dest
116 $(RM
) -rf
/tmp
/dest
/install-utils
/CVS
/tmp
/dest
/install-utils
/ChangeLog
117 cp
$(srcdir)/INSTALL.@BINARY_TYPE@
/tmp
/dest
/INSTALL
118 (cd
/tmp
/dest
&& $(TAR
) cf
- .
) | gzip
-9 \
119 > e2fsprogs-@E2FSPROGS_VERSION@
-@BINARY_TYPE@.
tar.gz
121 SRCROOT
= `echo e2fsprogs-@E2FSPROGS_VERSION@ | sed -e 's/-WIP//' \
122 -e 's/pre-//' -e 's/-PLUS//'`
124 $(srcdir)/.exclude-file
:
126 (cd
$(srcdir)/..
&& find e2fsprogs \
( -name \
*~
-o
-name \
*.orig \
127 -o
-name CVS
-o
-name \
*.rej
-o
-name Makefile.pq \
128 -o
-name TAGS
-o
-name \
*.old
-o
-name \
*.gmo \
129 -o
-name changed-files
-o
-name .
#\* \) \
130 -print) | sed
-e
"s/e2fsprogs/$$a/" > $(srcdir)/.exclude-file
131 echo
"$(SRCROOT)/build" >> $(srcdir)/.exclude-file
132 echo
"$(SRCROOT)/rpm.log" >> $(srcdir)/.exclude-file
133 echo
"$(SRCROOT)/TODO" >> $(srcdir)/.exclude-file
134 echo
"$(SRCROOT)/powerquest" >> $(srcdir)/.exclude-file
135 echo
"$(SRCROOT)/.exclude-file" >> $(srcdir)/.exclude-file
136 echo
"$(SRCROOT)/po/stamp-cat-id" >> $(srcdir)/.exclude-file
137 echo
"$(SRCROOT)/po/cat-id-tbl.c" >> $(srcdir)/.exclude-file
138 echo
$(SRCROOT
)/e2fsprogs-@E2FSPROGS_VERSION@.
tar.gz \
139 >> $(srcdir)/.exclude-file
141 source_tar_file
: $(srcdir)/.exclude-file
142 cd
$(srcdir)/..
&& a
=$(SRCROOT
); rm -f
$$a ; ln
-sf e2fsprogs
$$a ; \
143 $(TAR
) -c
-h
-v
-f
- \
144 -X
$$a/.exclude-file
$$a | \
145 gzip
-9 > e2fsprogs-@E2FSPROGS_VERSION@.
tar.gz
146 rm -f
$(srcdir)/.exclude-file