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