Whamcloud - gitweb
LU-13197 e2fsck: avoid mallinfo() if over 2GB allocated
[tools/e2fsprogs.git] / Makefile.in
1 srcdir = @srcdir@
2 top_srcdir = @top_srcdir@
3 VPATH = @srcdir@
4 top_builddir = .
5 my_dir = .
6 INSTALL = @INSTALL@
7
8 @MCONFIG@
9
10 % : %.sh
11
12 @RESIZER_CMT@RESIZE_DIR= resize
13 @DEBUGFS_CMT@DEBUGFS_DIR= debugfs
14 @UUID_CMT@UUID_LIB_SUBDIR= lib/uuid
15 @BLKID_CMT@BLKID_LIB_SUBDIR= lib/blkid
16 @E2SCRUB_CMT@E2SCRUB_DIR= scrub
17 @ALL_CMT@SUPPORT_LIB_SUBDIR= lib/support
18 @ALL_CMT@E2P_LIB_SUBDIR= lib/e2p
19 @ALL_CMT@EXT2FS_LIB_SUBDIR= lib/ext2fs
20
21 LIB_SUBDIRS=lib/et lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \
22         $(BLKID_LIB_SUBDIR) $(SUPPORT_LIB_SUBDIR) $(EXT2FS_LIB_SUBDIR) intl
23
24 PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po \
25         $(E2SCRUB_DIR)
26
27 SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
28
29 SUBS= util/subst.conf lib/config.h $(top_builddir)/lib/dirpaths.h \
30         lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h
31
32 TAR=tar
33
34 all:: subs
35         $(MAKE) libs
36 @ALL_CMT@       $(MAKE) progs
37 @ALL_CMT@       $(MAKE) docs
38
39 subs: $(DEP_SUBSTITUTE)
40         @for i in $(SUBS) ; do if test -d `dirname $$i` ; \
41                 then $(MAKE) $$i || exit $$? ; fi ; done
42         @(if test -d lib/et ; then cd lib/et && $(MAKE) compile_et; fi)
43         @(if test -d lib/ext2fs ; then cd lib/ext2fs && $(MAKE) ext2_err.h; fi)
44         @(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi)
45
46 progs: all-progs-recursive
47 libs: all-libs-recursive
48 all-progs-recursive all-libs-recursive:: subs
49
50 e2fsprogs-RHEL-6.spec: $(DEP_SUBSTITUTE) e2fsprogs-RHEL-6.spec.in
51         cd $(top_builddir); CONFIG_FILES=./e2fsprogs-RHEL-6.spec ./config.status
52
53 e2fsprogs-SUSE_LINUX-11+12+15.spec: $(DEP_SUBSTITUTE) e2fsprogs-SUSE_LINUX-11+12+15.spec.in
54         cd $(top_builddir); CONFIG_FILES=./e2fsprogs-SUSE_LINUX-11+12+15.spec ./config.status
55
56 e2fsprogs-RHEL-7+8.spec: $(DEP_SUBSTITUTE) e2fsprogs-RHEL-7+8.spec.in
57         cd $(top_builddir); CONFIG_FILES=./e2fsprogs-RHEL-7+8.spec ./config.status
58
59 rpm: e2fsprogs-RHEL-6.spec e2fsprogs-SUSE_LINUX-11+12+15.spec e2fsprogs-RHEL-7+8.spec
60         sh contrib/build-rpm
61
62 docs:
63         -@test -d doc && cd doc && $(MAKE) libext2fs.info
64
65 install-doc-libs:
66         -@test -d doc && cd doc && $(MAKE) install-doc-libs
67
68 uninstall-doc-libs:
69         -@test -d doc && cd doc && $(MAKE) uninstall-doc-libs
70
71 clean-doc:
72         -@test -d doc && cd doc && $(MAKE) clean
73
74 distclean-doc:
75         -test -d doc && cd doc && $(MAKE) distclean
76
77 install: subs all-libs-recursive install-progs-recursive \
78   install-shlibs-libs-recursive install-doc-libs
79 @SUBSET_CMT@    $(MAKE) install-libs
80
81 install-strip: subs all-libs-recursive install-strip-progs-recursive \
82   install-shlibs-strip-libs-recursive install-doc-libs
83
84 uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
85
86 install-libs: install-libs-recursive
87
88 uninstall-libs: uninstall-libs-recursive
89
90 coverage.txt: coverage.txt-recursive
91
92 check-recursive: all
93
94 TAGS clean-recursive distclean-recursive depend-recursive fullcheck-recursive \
95   check-recursive mostlyclean-recursive realclean-recursive \
96   coverage.txt-recursive:
97         @for subdir in $(SUBDIRS); do \
98           if test -d $$subdir ; then \
99             target=`echo $@|$(SED) 's/-recursive//'`; \
100             echo making $$target in $$subdir; \
101             (cd $$subdir && $(MAKE) $$target) || exit 1; \
102           fi ; \
103         done
104
105 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
106   uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
107
108
109 @ALL_CMT@all-progs-recursive install-progs-recursive install-strip-progs-recursive \
110 @ALL_CMT@  uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
111 @ALL_CMT@       @for subdir in $(PROG_SUBDIRS); do \
112 @ALL_CMT@         if test -d $$subdir ; then \
113 @ALL_CMT@           target=`echo $@|$(SED) 's/-progs-recursive//'`; \
114 @ALL_CMT@           echo making $$target in $$subdir; \
115 @ALL_CMT@           (cd $$subdir && $(MAKE) $$target) || exit 1; \
116 @ALL_CMT@         fi ; \
117 @ALL_CMT@       done
118
119 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
120   uninstall-libs-recursive install-shlibs-libs-recursive \
121   install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive \
122   coverage.txt-libs-recursive::
123         @for subdir in $(LIB_SUBDIRS); do \
124           if test -d $$subdir ; then \
125             target=`echo $@|$(SED) 's/-libs-recursive//'`; \
126             echo making $$target in $$subdir; \
127             (cd $$subdir && $(MAKE) $$target) || exit 1; \
128           fi ; \
129         done
130
131 mostlyclean: mostlyclean-recursive mostlyclean-local
132
133 clean:: clean-recursive clean-local clean-doc
134         $(RM) -f $(SUBS) 
135
136 distclean: distclean-doc distclean-recursive
137         $(RM) -rf autom4te.cache ext2ed/Makefile po/stamp-po \
138                 asm_types.h config.log public_config.h parse-types.log
139         $(MAKE) distclean-local 
140
141 realclean: realclean-recursive realclean-local
142
143 depend:: depend-recursive
144
145 lib/ext2fs/ext2_types.h: $(DEP_SUBSTITUTE) asm_types.h \
146                 $(srcdir)/lib/ext2fs/ext2_types.h.in
147         cd $(top_builddir); CONFIG_FILES=./lib/ext2fs/ext2_types.h ./config.status
148
149 lib/blkid/blkid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
150                 $(srcdir)/lib/blkid/blkid_types.h.in
151         cd $(top_builddir); CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status
152
153 lib/uuid/uuid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
154                 $(srcdir)/lib/uuid/uuid_types.h.in
155         cd $(top_builddir); CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status
156
157 mostlyclean-local:
158         $(RM) -f \#* *~ *.orig core MAKELOG 
159
160 clean-local: mostlyclean-local
161
162 distclean-local: clean-local
163         $(RM) -f $(SUBS) $(SUBST_CONF) \
164                 config.status config.log config.cache MCONFIG Makefile \
165                 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
166
167 realclean-local: distclean-local
168         $(RM) -f configure
169
170 check:: all check-recursive
171
172 fullcheck:: all fullcheck-recursive