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