]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - Makefile.in
AOSP: E2fsprogs: fix ODR issue
[thirdparty/e2fsprogs.git] / Makefile.in
CommitLineData
50e1e10f
TT
1srcdir = @srcdir@
2top_srcdir = @top_srcdir@
3VPATH = @srcdir@
4top_builddir = .
fc6d9d51 5my_dir = .
50e1e10f
TT
6INSTALL = @INSTALL@
7
8@MCONFIG@
9
24c9b558
TT
10% : %.sh
11
cdf186e4
TT
12@RESIZER_CMT@RESIZE_DIR= resize
13@DEBUGFS_CMT@DEBUGFS_DIR= debugfs
39fd3d4f 14@UUID_CMT@UUID_LIB_SUBDIR= lib/uuid
14b596d4 15@BLKID_CMT@BLKID_LIB_SUBDIR= lib/blkid
0afb9be6
TT
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
20LIB_SUBDIRS=lib/et lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \
21 $(BLKID_LIB_SUBDIR) $(SUPPORT_LIB_SUBDIR) $(EXT2FS_LIB_SUBDIR) intl
cdf186e4 22
921f4ad5 23PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po
f3b3dbbe 24SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
50e1e10f 25
0355d6d0 26SUBS= util/subst.conf lib/config.h $(top_builddir)/lib/dirpaths.h \
d1154eb4 27 lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h
50e1e10f 28
21c84b71
TT
29TAR=tar
30
78130a21 31all:: subs
6928adc9 32 $(MAKE) libs
0afb9be6
TT
33@ALL_CMT@ $(MAKE) progs
34@ALL_CMT@ $(MAKE) docs
a4d09610 35
f0eae15c 36subs: $(DEP_SUBSTITUTE)
60b30dba
TT
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)
dcb8e1fa 41 @(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi)
94ba8c75 42
3a0d5d39
TT
43progs: all-progs-recursive
44libs: all-libs-recursive
ed07fd93 45all-progs-recursive all-libs-recursive:: subs
50e1e10f 46
e5f0f3ee 47rpm:
90466c19
AD
48 sh contrib/build-rpm
49
21c84b71 50docs:
47204ff9 51 -@test -d doc && cd doc && $(MAKE) libext2fs.info
21c84b71
TT
52
53install-doc-libs:
47204ff9 54 -@test -d doc && cd doc && $(MAKE) install-doc-libs
21c84b71 55
a4b2d3ce 56uninstall-doc-libs:
47204ff9 57 -@test -d doc && cd doc && $(MAKE) uninstall-doc-libs
a4b2d3ce 58
3ac9f0ef 59clean-doc:
47204ff9 60 -@test -d doc && cd doc && $(MAKE) clean
3ac9f0ef
TT
61
62distclean-doc:
94ba8c75 63 -test -d doc && cd doc && $(MAKE) distclean
3ac9f0ef 64
94ba8c75 65install: subs all-libs-recursive install-progs-recursive \
522798d3 66 install-shlibs-libs-recursive install-doc-libs
feb235e0 67@SUBSET_CMT@ $(MAKE) install-libs
50e1e10f 68
522798d3
TT
69install-strip: subs all-libs-recursive install-strip-progs-recursive \
70 install-shlibs-strip-libs-recursive install-doc-libs
71
a4b2d3ce
TT
72uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
73
50e1e10f
TT
74install-libs: install-libs-recursive
75
a4b2d3ce
TT
76uninstall-libs: uninstall-libs-recursive
77
fedfb27f
TT
78coverage.txt: coverage.txt-recursive
79
58b3d8d3
MA
80check-recursive: all
81
11b8ef8b
TT
82TAGS clean-recursive distclean-recursive depend-recursive fullcheck-recursive \
83 check-recursive mostlyclean-recursive realclean-recursive \
84 coverage.txt-recursive:
47204ff9 85 @for subdir in $(SUBDIRS); do \
24b2c7a7
TT
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 ; \
50e1e10f
TT
91 done
92
522798d3 93all-progs-recursive install-progs-recursive install-strip-progs-recursive \
ed07fd93
TT
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
50e1e10f 106
522798d3
TT
107all-libs-recursive install-libs-recursive install-strip-libs-recursive \
108 uninstall-libs-recursive install-shlibs-libs-recursive \
fedfb27f 109 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive \
ed07fd93 110 coverage.txt-libs-recursive::
47204ff9 111 @for subdir in $(LIB_SUBDIRS); do \
24b2c7a7
TT
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 ; \
50e1e10f
TT
117 done
118
119mostlyclean: mostlyclean-recursive mostlyclean-local
a4d09610 120
fedfb27f 121clean:: clean-recursive clean-local clean-doc
605e6f0e 122 $(RM) -f $(SUBS)
a4d09610 123
9c3ea642 124distclean: distclean-doc distclean-recursive
e5f0f3ee 125 $(RM) -rf autom4te.cache ext2ed/Makefile po/stamp-po \
59a220dd 126 asm_types.h config.log public_config.h parse-types.log
9c3ea642 127 $(MAKE) distclean-local
a4d09610 128
50e1e10f
TT
129realclean: realclean-recursive realclean-local
130
9d564f73
TT
131depend:: depend-recursive
132
4ea7ea00
TT
133lib/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
137lib/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
141lib/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
94ba8c75 144
50e1e10f 145mostlyclean-local:
83d0b970 146 $(RM) -f \#* *~ *.orig core MAKELOG
5c36a2f8 147
50e1e10f 148clean-local: mostlyclean-local
5c36a2f8 149
50e1e10f 150distclean-local: clean-local
83d0b970 151 $(RM) -f $(SUBS) $(SUBST_CONF) \
5c36a2f8
TT
152 config.status config.log config.cache MCONFIG Makefile \
153 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
154
50e1e10f
TT
155realclean-local: distclean-local
156 $(RM) -f configure
157
db7cb4b4 158check:: all check-recursive
50e1e10f 159
11b8ef8b 160fullcheck:: all fullcheck-recursive