Whamcloud - gitweb
Update gettext files to version 0.19.8
[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)
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 all-static::
40         $(MAKE) libs
41 @ALL_CMT@       $(MAKE) static-progs
42
43 subs: $(DEP_SUBSTITUTE)
44         @for i in $(SUBS) ; do if test -d `dirname $$i` ; \
45                 then $(MAKE) $$i || exit $$? ; fi ; done
46         @(if test -d lib/et ; then cd lib/et && $(MAKE) compile_et; fi)
47         @(if test -d lib/ext2fs ; then cd lib/ext2fs && $(MAKE) ext2_err.h; fi)
48         @(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi)
49
50 progs: all-progs-recursive
51 static-progs: all-static-progs-recursive
52 libs: all-libs-recursive
53 all-progs-recursive all-libs-recursive:: subs
54
55 rpm:
56         sh contrib/build-rpm
57
58 docs:
59         -@test -d doc && cd doc && $(MAKE) libext2fs.info
60
61 install-doc-libs:
62         -@test -d doc && cd doc && $(MAKE) install-doc-libs
63
64 uninstall-doc-libs:
65         -@test -d doc && cd doc && $(MAKE) uninstall-doc-libs
66
67 clean-doc:
68         -@test -d doc && cd doc && $(MAKE) clean
69
70 distclean-doc:
71         -test -d doc && cd doc && $(MAKE) distclean
72
73 install: subs all-libs-recursive install-progs-recursive \
74   install-shlibs-libs-recursive install-doc-libs
75 @SUBSET_CMT@    $(MAKE) install-libs
76
77 install-strip: subs all-libs-recursive install-strip-progs-recursive \
78   install-shlibs-strip-libs-recursive install-doc-libs
79
80 uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
81
82 install-libs: install-libs-recursive
83
84 uninstall-libs: uninstall-libs-recursive
85
86 coverage.txt: coverage.txt-recursive
87
88 check-recursive: all
89
90 TAGS clean-recursive distclean-recursive depend-recursive fullcheck-recursive \
91   check-recursive mostlyclean-recursive realclean-recursive \
92   coverage.txt-recursive:
93         @for subdir in $(SUBDIRS); do \
94           if test -d $$subdir ; then \
95             target=`echo $@|$(SED) 's/-recursive//'`; \
96             echo making $$target in $$subdir; \
97             (cd $$subdir && $(MAKE) $$target) || exit 1; \
98           fi ; \
99         done
100
101 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
102   uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
103
104
105 @ALL_CMT@all-progs-recursive all-static-progs-recursive install-progs-recursive \
106 @ALL_CMT@  install-strip-progs-recursive uninstall-progs-recursive \
107 @ALL_CMT@  coverage.txt-progs-recursive:: all-libs-recursive
108 @ALL_CMT@       @for subdir in $(PROG_SUBDIRS); do \
109 @ALL_CMT@         if test -d $$subdir ; then \
110 @ALL_CMT@           target=`echo $@|$(SED) 's/-progs-recursive//'`; \
111 @ALL_CMT@           echo making $$target in $$subdir; \
112 @ALL_CMT@           (cd $$subdir && $(MAKE) $$target) || exit 1; \
113 @ALL_CMT@         fi ; \
114 @ALL_CMT@       done
115
116 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
117   uninstall-libs-recursive install-shlibs-libs-recursive \
118   install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive \
119   coverage.txt-libs-recursive::
120         @for subdir in $(LIB_SUBDIRS); do \
121           if test -d $$subdir ; then \
122             target=`echo $@|$(SED) 's/-libs-recursive//'`; \
123             echo making $$target in $$subdir; \
124             (cd $$subdir && $(MAKE) $$target) || exit 1; \
125           fi ; \
126         done
127
128 mostlyclean: mostlyclean-recursive mostlyclean-local
129
130 clean:: clean-recursive clean-local clean-doc
131         $(RM) -f $(SUBS) 
132
133 distclean: distclean-doc distclean-recursive
134         $(RM) -rf autom4te.cache ext2ed/Makefile po/stamp-po \
135                 asm_types.h config.log public_config.h parse-types.log
136         $(MAKE) distclean-local 
137
138 realclean: realclean-recursive realclean-local
139
140 depend:: depend-recursive
141
142 lib/ext2fs/ext2_types.h: $(DEP_SUBSTITUTE) asm_types.h \
143                 $(srcdir)/lib/ext2fs/ext2_types.h.in
144         cd $(top_builddir); CONFIG_FILES=./lib/ext2fs/ext2_types.h ./config.status
145
146 lib/blkid/blkid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
147                 $(srcdir)/lib/blkid/blkid_types.h.in
148         cd $(top_builddir); CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status
149
150 lib/uuid/uuid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
151                 $(srcdir)/lib/uuid/uuid_types.h.in
152         cd $(top_builddir); CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status
153
154 mostlyclean-local:
155         $(RM) -f \#* *~ *.orig core MAKELOG 
156
157 clean-local: mostlyclean-local
158
159 distclean-local: clean-local
160         $(RM) -f $(SUBS) $(SUBST_CONF) \
161                 config.status config.log config.cache MCONFIG Makefile \
162                 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
163
164 realclean-local: distclean-local
165         $(RM) -f configure
166
167 check:: all check-recursive
168
169 fullcheck:: all fullcheck-recursive