OSDN Git Service

Enable chattr and lsattr in the e2fsprogs build.
[android-x86/external-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
17 LIB_SUBDIRS=lib/et lib/ss lib/e2p $(UUID_LIB_SUBDIR) lib/ext2fs $(BLKID_LIB_SUBDIR) intl
18 PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po
19 SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
20
21 SUBS= lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h
22
23 TAR=tar
24
25 all:: subs
26         $(MAKE) libs
27         $(MAKE) progs
28         $(MAKE) docs
29
30 subs: $(DEP_SUBSTITUTE)
31         @for i in $(SUBS) ; do if test -d `dirname $$i` ; \
32                 then $(MAKE) $$i || exit $$? ; fi ; done
33         @(if test -d lib/et ; then cd lib/et && $(MAKE) compile_et; fi)
34         @(if test -d lib/ext2fs ; then cd lib/ext2fs && $(MAKE) ext2_err.h; fi)
35
36 progs: all-progs-recursive
37 libs: all-libs-recursive
38 all-progs-recursive all-libs-recursive: subs
39
40 e2fsprogs.spec: $(DEP_SUBSTITUTE) e2fsprogs.spec.in
41         cd $(top_builddir); CONFIG_FILES=./e2fsprogs.spec ./config.status
42
43 rpm: e2fsprogs.spec
44         sh contrib/build-rpm
45
46 docs:
47         -@test -d doc && cd doc && $(MAKE) libext2fs.info
48
49 install-doc-libs:
50         -@test -d doc && cd doc && $(MAKE) install-doc-libs
51
52 uninstall-doc-libs:
53         -@test -d doc && cd doc && $(MAKE) uninstall-doc-libs
54
55 clean-doc:
56         -@test -d doc && cd doc && $(MAKE) clean
57
58 distclean-doc:
59         -test -d doc && cd doc && $(MAKE) distclean
60
61 install: subs all-libs-recursive install-progs-recursive \
62   install-shlibs-libs-recursive install-doc-libs
63         if test ! -d e2fsck && test ! -d debugfs && test ! -d misc && test ! -d ext2ed ; then $(MAKE) install-libs ; fi
64
65 install-strip: subs all-libs-recursive install-strip-progs-recursive \
66   install-shlibs-strip-libs-recursive install-doc-libs
67
68 uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
69
70 install-libs: install-libs-recursive
71
72 uninstall-libs: uninstall-libs-recursive
73
74 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
75   mostlyclean-recursive realclean-recursive:
76         @for subdir in $(SUBDIRS); do \
77           if test -d $$subdir ; then \
78             target=`echo $@|$(SED) 's/-recursive//'`; \
79             echo making $$target in $$subdir; \
80             (cd $$subdir && $(MAKE) $$target) || exit 1; \
81           fi ; \
82         done
83
84 all-progs-recursive install-progs-recursive install-strip-progs-recursive \
85   uninstall-progs-recursive: all-libs-recursive
86         @for subdir in $(PROG_SUBDIRS); do \
87           if test -d $$subdir ; then \
88             target=`echo $@|$(SED) 's/-progs-recursive//'`; \
89             echo making $$target in $$subdir; \
90             (cd $$subdir && $(MAKE) $$target) || exit 1; \
91           fi ; \
92         done
93
94 all-libs-recursive install-libs-recursive install-strip-libs-recursive \
95   uninstall-libs-recursive install-shlibs-libs-recursive \
96   install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive:
97         @for subdir in $(LIB_SUBDIRS); do \
98           if test -d $$subdir ; then \
99             target=`echo $@|$(SED) 's/-libs-recursive//'`; \
100             echo making $$target in $$subdir; \
101             (cd $$subdir && $(MAKE) $$target) || exit 1; \
102           fi ; \
103         done
104
105 mostlyclean: mostlyclean-recursive mostlyclean-local
106
107 clean: clean-recursive clean-local clean-doc
108         $(RM) -f $(SUBS) 
109
110 distclean: distclean-doc distclean-recursive
111         $(RM) -rf autom4te.cache e2fsprogs.spec ext2ed/Makefile po/stamp-po
112         $(MAKE) distclean-local 
113
114 realclean: realclean-recursive realclean-local
115
116 depend:: depend-recursive
117
118 lib/ext2fs/ext2_types.h: $(DEP_SUBSTITUTE) asm_types.h \
119                 $(srcdir)/lib/ext2fs/ext2_types.h.in
120         cd $(top_builddir); CONFIG_FILES=./lib/ext2fs/ext2_types.h ./config.status
121
122 lib/blkid/blkid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
123                 $(srcdir)/lib/blkid/blkid_types.h.in
124         cd $(top_builddir); CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status
125
126 lib/uuid/uuid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
127                 $(srcdir)/lib/uuid/uuid_types.h.in
128         cd $(top_builddir); CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status
129
130 mostlyclean-local:
131         $(RM) -f \#* *~ *.orig core MAKELOG 
132
133 clean-local: mostlyclean-local
134
135 distclean-local: clean-local
136         $(RM) -f $(SUBS) $(SUBST_CONF) \
137                 config.status config.log config.cache MCONFIG Makefile \
138                 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
139
140 realclean-local: distclean-local
141         $(RM) -f configure
142
143 check:: subs check-recursive
144