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