]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - Makefile.in
jfs.h:
[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 LIB_SUBDIRS=lib/et lib/ss lib/e2p lib/ext2fs lib/uuid # lib/finddev
11 PROG_SUBDIRS=e2fsck debugfs misc resize tests/progs
12 SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
13
14 SUBS= include/asm/types.h
15
16 TAR=tar
17
18 all:: $(SUBS)
19 $(MAKE) libs
20 $(MAKE) progs
21 $(MAKE) docs
22
23 progs: $(SUBS) all-progs-recursive
24 libs: $(SUBS) all-libs-recursive
25
26 docs:
27 cd doc && $(MAKE) libext2fs.info
28
29 install-doc-libs:
30 cd doc && $(MAKE) install-doc-libs
31
32 uninstall-doc-libs:
33 cd doc && $(MAKE) uninstall-doc-libs
34
35 clean-doc:
36 cd doc && $(MAKE) clean
37
38 distclean-doc:
39 cd doc && $(MAKE) distclean
40
41 install: all-libs-recursive install-progs-recursive \
42 install-shlibs-libs-recursive install-doc-libs
43 # export MANPATH=$(DESTDIR)$(mandir); $(srcdir)/install-utils/compile_manpages
44
45 uninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
46
47 install-libs: install-libs-recursive
48
49 uninstall-libs: uninstall-libs-recursive
50
51 TAGS clean-recursive distclean-recursive depend-recursive check-recursive \
52 mostlyclean-recursive realclean-recursive install-recursive:
53 for subdir in $(SUBDIRS); do \
54 if test -d $$subdir ; then \
55 target=`echo $@|$(SED) 's/-recursive//'`; \
56 echo making $$target in $$subdir; \
57 (cd $$subdir && $(MAKE) $$target) || exit 1; \
58 fi ; \
59 done
60
61 all-progs-recursive install-progs-recursive uninstall-progs-recursive:
62 for subdir in $(PROG_SUBDIRS); do \
63 if test -d $$subdir ; then \
64 target=`echo $@|$(SED) 's/-progs-recursive//'`; \
65 echo making $$target in $$subdir; \
66 (cd $$subdir && $(MAKE) $$target) || exit 1; \
67 fi ; \
68 done
69
70 all-libs-recursive install-libs-recursive uninstall-libs-recursive install-shlibs-libs-recursive uninstall-shlibs-libs-recursive:
71 for subdir in $(LIB_SUBDIRS); do \
72 if test -d $$subdir ; then \
73 target=`echo $@|$(SED) 's/-libs-recursive//'`; \
74 echo making $$target in $$subdir; \
75 (cd $$subdir && $(MAKE) $$target) || exit 1; \
76 fi ; \
77 done
78
79 mostlyclean: mostlyclean-recursive mostlyclean-local
80
81 clean: clean-recursive clean-local clean-doc
82 $(RM) -f $(SUBS)
83
84 distclean: distclean-doc distclean-recursive distclean-local
85
86 realclean: realclean-recursive realclean-local
87
88 depend:: depend-recursive
89
90 include/asm/types.h: $(DEP_SUBSTITUTE) $(srcdir)/include/asm/types.h.in
91 $(SUBSTITUTE) $(srcdir)/include/asm/types.h.in \
92 > include/asm/types.h
93
94 mostlyclean-local:
95 $(RM) -f \#* *~ core MAKELOG
96
97 clean-local: mostlyclean-local
98
99 distclean-local: clean-local
100 $(RM) -f include/asm/types.h $(SUBST_CONF) \
101 config.status config.log config.cache MCONFIG Makefile \
102 $(srcdir)/TAGS $(srcdir)/Makefile.in.old
103
104 realclean-local: distclean-local
105 $(RM) -f configure
106
107 check:: check-recursive
108
109 distribution_tar_file:
110 $(RM) -rf /tmp/dest
111 $(MAKE) DESTDIR=/tmp/dest install
112 cp -r $(srcdir)/README $(srcdir)/install-utils /tmp/dest
113 $(RM) -rf /tmp/dest/install-utils/CVS /tmp/dest/install-utils/ChangeLog
114 cp $(srcdir)/INSTALL.@BINARY_TYPE@ /tmp/dest/INSTALL
115 (cd /tmp/dest && $(TAR) cf - . ) | gzip -9 \
116 > e2fsprogs-@E2FSPROGS_VERSION@-@BINARY_TYPE@.tar.gz
117
118 SRCROOT = `echo e2fsprogs-@E2FSPROGS_VERSION@ | sed -e 's/-WIP//' \
119 -e 's/pre-//' -e 's/-PLUS//'`
120
121 $(srcdir)/.exclude-file:
122 a=$(SRCROOT); \
123 (cd $(srcdir)/.. && find e2fsprogs \( -name \*~ -o -name \*.orig \
124 -o -name CVS -o -name \*.rej -o -name Makefile.pq \
125 -o -name TAGS -o -name \*.old -o -name \*.gmo \
126 -o -name TODO -o -name changed-files -o -name .#\* \) \
127 -print) | sed -e "s/e2fsprogs/$$a/" > $(srcdir)/.exclude-file
128 echo "$(SRCROOT)/build" >> $(srcdir)/.exclude-file
129 echo "$(SRCROOT)/rpm.log" >> $(srcdir)/.exclude-file
130 echo "$(SRCROOT)/powerquest" >> $(srcdir)/.exclude-file
131 echo "$(SRCROOT)/.exclude-file" >> $(srcdir)/.exclude-file
132 echo "$(SRCROOT)/po/stamp-cat-id" >> $(srcdir)/.exclude-file
133 echo "$(SRCROOT)/po/cat-id-tbl.c" >> $(srcdir)/.exclude-file
134 echo $(SRCROOT)/e2fsprogs-@E2FSPROGS_VERSION@.tar.gz \
135 >> $(srcdir)/.exclude-file
136
137 source_tar_file: $(srcdir)/.exclude-file
138 cd $(srcdir)/.. && a=$(SRCROOT); rm -f $$a ; ln -sf e2fsprogs $$a ; \
139 $(TAR) -c -h -v -f - \
140 -X $$a/.exclude-file $$a | \
141 gzip -9 > e2fsprogs-@E2FSPROGS_VERSION@.tar.gz
142 rm -f $(srcdir)/.exclude-file