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