]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - Makefile.in
Drop use of -pedantic when doing gcc-wall
[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
5ce368f0 16@E2SCRUB_CMT@E2SCRUB_DIR= scrub
0afb9be6
TT
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
21LIB_SUBDIRS=lib/et lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \
22 $(BLKID_LIB_SUBDIR) $(SUPPORT_LIB_SUBDIR) $(EXT2FS_LIB_SUBDIR) intl
cdf186e4 23
6ac81e45
TT
24PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po \
25 $(E2SCRUB_DIR)
cdf186e4 26
f3b3dbbe 27SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
50e1e10f 28
0355d6d0 29SUBS= util/subst.conf lib/config.h $(top_builddir)/lib/dirpaths.h \
d1154eb4 30 lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h
50e1e10f 31
21c84b71
TT
32TAR=tar
33
78130a21 34all:: subs
6928adc9 35 $(MAKE) libs
0afb9be6
TT
36@ALL_CMT@ $(MAKE) progs
37@ALL_CMT@ $(MAKE) docs
a4d09610 38
f0eae15c 39subs: $(DEP_SUBSTITUTE)
60b30dba
TT
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)
dcb8e1fa 44 @(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi)
94ba8c75 45
3a0d5d39
TT
46progs: all-progs-recursive
47libs: all-libs-recursive
ed07fd93 48all-progs-recursive all-libs-recursive:: subs
50e1e10f 49
e5f0f3ee 50rpm:
90466c19
AD
51 sh contrib/build-rpm
52
21c84b71 53docs:
47204ff9 54 -@test -d doc && cd doc && $(MAKE) libext2fs.info
21c84b71
TT
55
56install-doc-libs:
47204ff9 57 -@test -d doc && cd doc && $(MAKE) install-doc-libs
21c84b71 58
a4b2d3ce 59uninstall-doc-libs:
47204ff9 60 -@test -d doc && cd doc && $(MAKE) uninstall-doc-libs
a4b2d3ce 61
3ac9f0ef 62clean-doc:
47204ff9 63 -@test -d doc && cd doc && $(MAKE) clean
3ac9f0ef
TT
64
65distclean-doc:
94ba8c75 66 -test -d doc && cd doc && $(MAKE) distclean
3ac9f0ef 67
94ba8c75 68install: subs all-libs-recursive install-progs-recursive \
522798d3 69 install-shlibs-libs-recursive install-doc-libs
feb235e0 70@SUBSET_CMT@ $(MAKE) install-libs
50e1e10f 71
522798d3
TT
72install-strip: subs all-libs-recursive install-strip-progs-recursive \
73 install-shlibs-strip-libs-recursive install-doc-libs
74
a4b2d3ce
TT
75uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
76
50e1e10f
TT
77install-libs: install-libs-recursive
78
a4b2d3ce
TT
79uninstall-libs: uninstall-libs-recursive
80
fedfb27f
TT
81coverage.txt: coverage.txt-recursive
82
58b3d8d3
MA
83check-recursive: all
84
11b8ef8b
TT
85TAGS clean-recursive distclean-recursive depend-recursive fullcheck-recursive \
86 check-recursive mostlyclean-recursive realclean-recursive \
87 coverage.txt-recursive:
47204ff9 88 @for subdir in $(SUBDIRS); do \
24b2c7a7
TT
89 if test -d $$subdir ; then \
90 target=`echo $@|$(SED) 's/-recursive//'`; \
91 echo making $$target in $$subdir; \
92 (cd $$subdir && $(MAKE) $$target) || exit 1; \
93 fi ; \
50e1e10f
TT
94 done
95
522798d3 96all-progs-recursive install-progs-recursive install-strip-progs-recursive \
ed07fd93
TT
97 uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
98
99
100@ALL_CMT@all-progs-recursive install-progs-recursive install-strip-progs-recursive \
101@ALL_CMT@ uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
102@ALL_CMT@ @for subdir in $(PROG_SUBDIRS); do \
103@ALL_CMT@ if test -d $$subdir ; then \
104@ALL_CMT@ target=`echo $@|$(SED) 's/-progs-recursive//'`; \
105@ALL_CMT@ echo making $$target in $$subdir; \
106@ALL_CMT@ (cd $$subdir && $(MAKE) $$target) || exit 1; \
107@ALL_CMT@ fi ; \
108@ALL_CMT@ done
50e1e10f 109
522798d3
TT
110all-libs-recursive install-libs-recursive install-strip-libs-recursive \
111 uninstall-libs-recursive install-shlibs-libs-recursive \
fedfb27f 112 install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive \
ed07fd93 113 coverage.txt-libs-recursive::
47204ff9 114 @for subdir in $(LIB_SUBDIRS); do \
24b2c7a7
TT
115 if test -d $$subdir ; then \
116 target=`echo $@|$(SED) 's/-libs-recursive//'`; \
117 echo making $$target in $$subdir; \
118 (cd $$subdir && $(MAKE) $$target) || exit 1; \
119 fi ; \
50e1e10f
TT
120 done
121
122mostlyclean: mostlyclean-recursive mostlyclean-local
a4d09610 123
fedfb27f 124clean:: clean-recursive clean-local clean-doc
605e6f0e 125 $(RM) -f $(SUBS)
a4d09610 126
9c3ea642 127distclean: distclean-doc distclean-recursive
e5f0f3ee 128 $(RM) -rf autom4te.cache ext2ed/Makefile po/stamp-po \
59a220dd 129 asm_types.h config.log public_config.h parse-types.log
9c3ea642 130 $(MAKE) distclean-local
a4d09610 131
50e1e10f
TT
132realclean: realclean-recursive realclean-local
133
9d564f73
TT
134depend:: depend-recursive
135
4ea7ea00
TT
136lib/ext2fs/ext2_types.h: $(DEP_SUBSTITUTE) asm_types.h \
137 $(srcdir)/lib/ext2fs/ext2_types.h.in
138 cd $(top_builddir); CONFIG_FILES=./lib/ext2fs/ext2_types.h ./config.status
139
140lib/blkid/blkid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
141 $(srcdir)/lib/blkid/blkid_types.h.in
142 cd $(top_builddir); CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status
143
144lib/uuid/uuid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
145 $(srcdir)/lib/uuid/uuid_types.h.in
146 cd $(top_builddir); CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status
94ba8c75 147
50e1e10f 148mostlyclean-local:
83d0b970 149 $(RM) -f \#* *~ *.orig core MAKELOG
5c36a2f8 150
50e1e10f 151clean-local: mostlyclean-local
5c36a2f8 152
50e1e10f 153distclean-local: clean-local
83d0b970 154 $(RM) -f $(SUBS) $(SUBST_CONF) \
5c36a2f8
TT
155 config.status config.log config.cache MCONFIG Makefile \
156 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
157
50e1e10f
TT
158realclean-local: distclean-local
159 $(RM) -f configure
160
db7cb4b4 161check:: all check-recursive
50e1e10f 162
11b8ef8b 163fullcheck:: all fullcheck-recursive