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