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