xref: /aosp_15_r20/external/e2fsprogs/Makefile.in (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Workersrcdir = @srcdir@
2*6a54128fSAndroid Build Coastguard Workertop_srcdir = @top_srcdir@
3*6a54128fSAndroid Build Coastguard WorkerVPATH = @srcdir@
4*6a54128fSAndroid Build Coastguard Workertop_builddir = .
5*6a54128fSAndroid Build Coastguard Workermy_dir = .
6*6a54128fSAndroid Build Coastguard WorkerINSTALL = @INSTALL@
7*6a54128fSAndroid Build Coastguard WorkerMKDIR_P = @MKDIR_P@
8*6a54128fSAndroid Build Coastguard Worker
9*6a54128fSAndroid Build Coastguard Worker@MCONFIG@
10*6a54128fSAndroid Build Coastguard Worker
11*6a54128fSAndroid Build Coastguard Worker% : %.sh
12*6a54128fSAndroid Build Coastguard Worker
13*6a54128fSAndroid Build Coastguard Worker@RESIZER_CMT@RESIZE_DIR= resize
14*6a54128fSAndroid Build Coastguard Worker@DEBUGFS_CMT@DEBUGFS_DIR= debugfs
15*6a54128fSAndroid Build Coastguard Worker@UUID_CMT@UUID_LIB_SUBDIR= lib/uuid
16*6a54128fSAndroid Build Coastguard Worker@BLKID_CMT@BLKID_LIB_SUBDIR= lib/blkid
17*6a54128fSAndroid Build Coastguard Worker@E2SCRUB_CMT@E2SCRUB_DIR= scrub
18*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@SUPPORT_LIB_SUBDIR= lib/support
19*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@E2P_LIB_SUBDIR= lib/e2p
20*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@EXT2FS_LIB_SUBDIR= lib/ext2fs
21*6a54128fSAndroid Build Coastguard Worker
22*6a54128fSAndroid Build Coastguard WorkerLIB_SUBDIRS=lib/et lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \
23*6a54128fSAndroid Build Coastguard Worker	$(BLKID_LIB_SUBDIR) $(SUPPORT_LIB_SUBDIR) $(EXT2FS_LIB_SUBDIR)
24*6a54128fSAndroid Build Coastguard Worker
25*6a54128fSAndroid Build Coastguard WorkerPROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs \
26*6a54128fSAndroid Build Coastguard Worker	tests/fuzz po $(E2SCRUB_DIR)
27*6a54128fSAndroid Build Coastguard Worker
28*6a54128fSAndroid Build Coastguard WorkerSUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests
29*6a54128fSAndroid Build Coastguard Worker
30*6a54128fSAndroid Build Coastguard WorkerSUBS= util/subst.conf lib/config.h $(top_builddir)/lib/dirpaths.h \
31*6a54128fSAndroid Build Coastguard Worker	lib/ext2fs/ext2_types.h lib/blkid/blkid_types.h lib/uuid/uuid_types.h
32*6a54128fSAndroid Build Coastguard Worker
33*6a54128fSAndroid Build Coastguard WorkerTAR=tar
34*6a54128fSAndroid Build Coastguard Worker
35*6a54128fSAndroid Build Coastguard Workerall:: subs
36*6a54128fSAndroid Build Coastguard Worker	$(MAKE) libs
37*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	$(MAKE) progs
38*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	$(MAKE) docs
39*6a54128fSAndroid Build Coastguard Worker
40*6a54128fSAndroid Build Coastguard Workerall-static::
41*6a54128fSAndroid Build Coastguard Worker	$(MAKE) libs
42*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	$(MAKE) static-progs
43*6a54128fSAndroid Build Coastguard Worker
44*6a54128fSAndroid Build Coastguard Workersubs: $(DEP_SUBSTITUTE)
45*6a54128fSAndroid Build Coastguard Worker	@for i in $(SUBS) ; do if test -d `dirname $$i` ; \
46*6a54128fSAndroid Build Coastguard Worker		then $(MAKE) $$i || exit $$? ; fi ; done
47*6a54128fSAndroid Build Coastguard Worker	@(if test -d lib/et ; then cd lib/et && $(MAKE) compile_et; fi)
48*6a54128fSAndroid Build Coastguard Worker	@(if test -d lib/ext2fs ; then cd lib/ext2fs && $(MAKE) ext2_err.h; fi)
49*6a54128fSAndroid Build Coastguard Worker	@(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi)
50*6a54128fSAndroid Build Coastguard Worker
51*6a54128fSAndroid Build Coastguard Workerprogs: all-progs-recursive
52*6a54128fSAndroid Build Coastguard Workerstatic-progs: all-static-progs-recursive
53*6a54128fSAndroid Build Coastguard Workerlibs: all-libs-recursive
54*6a54128fSAndroid Build Coastguard Workerall-progs-recursive all-libs-recursive:: subs
55*6a54128fSAndroid Build Coastguard Worker
56*6a54128fSAndroid Build Coastguard Workerrpm:
57*6a54128fSAndroid Build Coastguard Worker	sh contrib/build-rpm
58*6a54128fSAndroid Build Coastguard Worker
59*6a54128fSAndroid Build Coastguard Workerdocs:
60*6a54128fSAndroid Build Coastguard Worker	-@test -d doc && cd doc && $(MAKE) libext2fs.info
61*6a54128fSAndroid Build Coastguard Worker
62*6a54128fSAndroid Build Coastguard Workerinstall-doc-libs:
63*6a54128fSAndroid Build Coastguard Worker	-@test -d doc && cd doc && $(MAKE) install-doc-libs
64*6a54128fSAndroid Build Coastguard Worker
65*6a54128fSAndroid Build Coastguard Workeruninstall-doc-libs:
66*6a54128fSAndroid Build Coastguard Worker	-@test -d doc && cd doc && $(MAKE) uninstall-doc-libs
67*6a54128fSAndroid Build Coastguard Worker
68*6a54128fSAndroid Build Coastguard Workerclean-doc:
69*6a54128fSAndroid Build Coastguard Worker	-@test -d doc && cd doc && $(MAKE) clean
70*6a54128fSAndroid Build Coastguard Worker
71*6a54128fSAndroid Build Coastguard Workerdistclean-doc:
72*6a54128fSAndroid Build Coastguard Worker	-test -d doc && cd doc && $(MAKE) distclean
73*6a54128fSAndroid Build Coastguard Worker
74*6a54128fSAndroid Build Coastguard Workerinstall: subs all-libs-recursive install-progs-recursive \
75*6a54128fSAndroid Build Coastguard Worker  install-shlibs-libs-recursive install-doc-libs
76*6a54128fSAndroid Build Coastguard Worker@SUBSET_CMT@	$(MAKE) install-libs
77*6a54128fSAndroid Build Coastguard Worker
78*6a54128fSAndroid Build Coastguard Workerinstall-strip: subs all-libs-recursive install-strip-progs-recursive \
79*6a54128fSAndroid Build Coastguard Worker  install-shlibs-strip-libs-recursive install-doc-libs
80*6a54128fSAndroid Build Coastguard Worker
81*6a54128fSAndroid Build Coastguard Workeruninstall: uninstall-progs-recursive uninstall-shlibs-libs-recursive uninstall-doc-libs
82*6a54128fSAndroid Build Coastguard Worker
83*6a54128fSAndroid Build Coastguard Workerinstall-libs: install-libs-recursive
84*6a54128fSAndroid Build Coastguard Worker
85*6a54128fSAndroid Build Coastguard Workeruninstall-libs: uninstall-libs-recursive
86*6a54128fSAndroid Build Coastguard Worker
87*6a54128fSAndroid Build Coastguard Workercoverage.txt: coverage.txt-recursive
88*6a54128fSAndroid Build Coastguard Worker
89*6a54128fSAndroid Build Coastguard Workercheck-recursive: all
90*6a54128fSAndroid Build Coastguard Worker
91*6a54128fSAndroid Build Coastguard WorkerTAGS clean-recursive distclean-recursive depend-recursive fullcheck-recursive \
92*6a54128fSAndroid Build Coastguard Worker  check-recursive mostlyclean-recursive realclean-recursive \
93*6a54128fSAndroid Build Coastguard Worker  coverage.txt-recursive:
94*6a54128fSAndroid Build Coastguard Worker	@for subdir in $(SUBDIRS); do \
95*6a54128fSAndroid Build Coastguard Worker	  if test -d $$subdir ; then \
96*6a54128fSAndroid Build Coastguard Worker	    target=`echo $@|$(SED) 's/-recursive//'`; \
97*6a54128fSAndroid Build Coastguard Worker	    echo making $$target in $$subdir; \
98*6a54128fSAndroid Build Coastguard Worker	    (cd $$subdir && $(MAKE) $$target) || exit 1; \
99*6a54128fSAndroid Build Coastguard Worker	  fi ; \
100*6a54128fSAndroid Build Coastguard Worker	done
101*6a54128fSAndroid Build Coastguard Worker
102*6a54128fSAndroid Build Coastguard Workerall-progs-recursive install-progs-recursive install-strip-progs-recursive \
103*6a54128fSAndroid Build Coastguard Worker  uninstall-progs-recursive coverage.txt-progs-recursive:: all-libs-recursive
104*6a54128fSAndroid Build Coastguard Worker
105*6a54128fSAndroid Build Coastguard Worker
106*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@all-progs-recursive all-static-progs-recursive install-progs-recursive \
107*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@  install-strip-progs-recursive uninstall-progs-recursive \
108*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@  coverage.txt-progs-recursive:: all-libs-recursive
109*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	@for subdir in $(PROG_SUBDIRS); do \
110*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	  if test -d $$subdir ; then \
111*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	    target=`echo $@|$(SED) 's/-progs-recursive//'`; \
112*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	    echo making $$target in $$subdir; \
113*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	    (cd $$subdir && $(MAKE) $$target) || exit 1; \
114*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	  fi ; \
115*6a54128fSAndroid Build Coastguard Worker@ALL_CMT@	done
116*6a54128fSAndroid Build Coastguard Worker
117*6a54128fSAndroid Build Coastguard Workerall-libs-recursive install-libs-recursive install-strip-libs-recursive \
118*6a54128fSAndroid Build Coastguard Worker  uninstall-libs-recursive install-shlibs-libs-recursive \
119*6a54128fSAndroid Build Coastguard Worker  install-shlibs-strip-libs-recursive uninstall-shlibs-libs-recursive \
120*6a54128fSAndroid Build Coastguard Worker  coverage.txt-libs-recursive::
121*6a54128fSAndroid Build Coastguard Worker	@for subdir in $(LIB_SUBDIRS); do \
122*6a54128fSAndroid Build Coastguard Worker	  if test -d $$subdir ; then \
123*6a54128fSAndroid Build Coastguard Worker	    target=`echo $@|$(SED) 's/-libs-recursive//'`; \
124*6a54128fSAndroid Build Coastguard Worker	    echo making $$target in $$subdir; \
125*6a54128fSAndroid Build Coastguard Worker	    (cd $$subdir && $(MAKE) $$target) || exit 1; \
126*6a54128fSAndroid Build Coastguard Worker	  fi ; \
127*6a54128fSAndroid Build Coastguard Worker	done
128*6a54128fSAndroid Build Coastguard Worker
129*6a54128fSAndroid Build Coastguard Workermostlyclean: mostlyclean-recursive mostlyclean-local
130*6a54128fSAndroid Build Coastguard Worker
131*6a54128fSAndroid Build Coastguard Workerclean:: clean-recursive clean-local clean-doc
132*6a54128fSAndroid Build Coastguard Worker	$(RM) -f $(SUBS)
133*6a54128fSAndroid Build Coastguard Worker
134*6a54128fSAndroid Build Coastguard Workerdistclean: distclean-doc distclean-recursive
135*6a54128fSAndroid Build Coastguard Worker	$(RM) -rf autom4te.cache ext2ed/Makefile po/stamp-po \
136*6a54128fSAndroid Build Coastguard Worker		asm_types.h config.log public_config.h parse-types.log
137*6a54128fSAndroid Build Coastguard Worker	$(MAKE) distclean-local
138*6a54128fSAndroid Build Coastguard Worker
139*6a54128fSAndroid Build Coastguard Workerrealclean: realclean-recursive realclean-local
140*6a54128fSAndroid Build Coastguard Worker
141*6a54128fSAndroid Build Coastguard Workerdepend:: depend-recursive
142*6a54128fSAndroid Build Coastguard Worker
143*6a54128fSAndroid Build Coastguard Workerlib/ext2fs/ext2_types.h: $(DEP_SUBSTITUTE) asm_types.h \
144*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/lib/ext2fs/ext2_types.h.in
145*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); CONFIG_FILES=./lib/ext2fs/ext2_types.h ./config.status
146*6a54128fSAndroid Build Coastguard Worker
147*6a54128fSAndroid Build Coastguard Workerlib/blkid/blkid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
148*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/lib/blkid/blkid_types.h.in
149*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); CONFIG_FILES=./lib/blkid/blkid_types.h ./config.status
150*6a54128fSAndroid Build Coastguard Worker
151*6a54128fSAndroid Build Coastguard Workerlib/uuid/uuid_types.h: $(DEP_SUBSTITUTE) asm_types.h \
152*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/lib/uuid/uuid_types.h.in
153*6a54128fSAndroid Build Coastguard Worker	cd $(top_builddir); CONFIG_FILES=./lib/uuid/uuid_types.h ./config.status
154*6a54128fSAndroid Build Coastguard Worker
155*6a54128fSAndroid Build Coastguard Workermostlyclean-local:
156*6a54128fSAndroid Build Coastguard Worker	$(RM) -f \#* *~ *.orig core MAKELOG
157*6a54128fSAndroid Build Coastguard Worker
158*6a54128fSAndroid Build Coastguard Workerclean-local: mostlyclean-local
159*6a54128fSAndroid Build Coastguard Worker
160*6a54128fSAndroid Build Coastguard Workerdistclean-local: clean-local
161*6a54128fSAndroid Build Coastguard Worker	$(RM) -f $(SUBS) $(SUBST_CONF) \
162*6a54128fSAndroid Build Coastguard Worker		config.status config.log config.cache MCONFIG Makefile \
163*6a54128fSAndroid Build Coastguard Worker		$(srcdir)/TAGS $(srcdir)/Makefile.in.old
164*6a54128fSAndroid Build Coastguard Worker
165*6a54128fSAndroid Build Coastguard Workerrealclean-local: distclean-local
166*6a54128fSAndroid Build Coastguard Worker	$(RM) -f configure
167*6a54128fSAndroid Build Coastguard Worker
168*6a54128fSAndroid Build Coastguard Workercheck::	all check-recursive
169*6a54128fSAndroid Build Coastguard Worker
170*6a54128fSAndroid Build Coastguard Workerfullcheck:: all fullcheck-recursive
171