2 # Standard e2fsprogs prologue....
6 top_srcdir = @top_srcdir@
14 @IMAGER_CMT@E2IMAGE_PROG= e2image
15 @IMAGER_CMT@E2IMAGE_MAN= e2image.8
17 @UUIDD_CMT@UUIDD_PROG= uuidd
18 @UUIDD_CMT@UUIDD_MAN= uuidd.8
20 @BLKID_CMT@BLKID_PROG= blkid
21 @BLKID_CMT@BLKID_MAN= blkid.8
23 @BLKID_CMT@FINDFS_LINK= findfs
24 @BLKID_CMT@FINDFS_MAN= findfs.8
26 SPROGS= mke2fs badblocks tune2fs dumpe2fs $(BLKID_PROG) logsave \
27 $(E2IMAGE_PROG) @FSCK_PROG@ e2undo
28 USPROGS= mklost+found filefrag e2freefrag $(UUIDD_PROG)
29 SMANPAGES= tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \
30 e2label.8 $(FINDFS_MAN) $(BLKID_MAN) $(E2IMAGE_MAN) \
31 logsave.8 filefrag.8 e2freefrag.8 e2undo.8 $(UUIDD_MAN) @FSCK_MAN@
32 FMANPAGES= mke2fs.conf.5
34 UPROGS= chattr lsattr @UUID_CMT@ uuidgen
35 UMANPAGES= chattr.1 lsattr.1 @UUID_CMT@ uuidgen.1
37 LPROGS= @E2INITRD_PROG@
39 TUNE2FS_OBJS= tune2fs.o util.o
40 MKLPF_OBJS= mklost+found.o
41 MKE2FS_OBJS= mke2fs.o util.o profile.o prof_err.o default_profile.o
44 UUIDGEN_OBJS= uuidgen.o
46 DUMPE2FS_OBJS= dumpe2fs.o
47 BADBLOCKS_OBJS= badblocks.o
48 E2IMAGE_OBJS= e2image.o
49 FSCK_OBJS= fsck.o base_device.o ismounted.o
51 FILEFRAG_OBJS= filefrag.o
53 E2FREEFRAG_OBJS= e2freefrag.o
55 PROFILED_TUNE2FS_OBJS= profiled/tune2fs.o profiled/util.o
56 PROFILED_MKLPF_OBJS= profiled/mklost+found.o
57 PROFILED_MKE2FS_OBJS= profiled/mke2fs.o profiled/util.o profiled/profile.o \
58 profiled/prof_err.o profiled/default_profile.o
59 PROFILED_CHATTR_OBJS= profiled/chattr.o
60 PROFILED_LSATTR_OBJS= profiled/lsattr.o
61 PROFILED_UUIDGEN_OBJS= profiled/uuidgen.o
62 PROFILED_UUIDD_OBJS= profiled/uuidd.o
63 PROFILED_DUMPE2FS_OBJS= profiled/dumpe2fs.o
64 PROFILED_BADBLOCKS_OBJS= profiled/badblocks.o
65 PROFILED_E2IMAGE_OBJS= profiled/e2image.o
66 PROFILED_FSCK_OBJS= profiled/fsck.o profiled/base_device.o \
68 PROFILED_BLKID_OBJS= profiled/blkid.o
69 PROFILED_FILEFRAG_OBJS= profiled/filefrag.o
70 PROFILED_E2UNDO_OBJS= profiled/e2undo.o
73 XTRA_CFLAGS= -I$(srcdir)/../e2fsck -I.
75 SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c \
76 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \
77 $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \
78 $(srcdir)/uuidgen.c $(srcdir)/blkid.c $(srcdir)/logsave.c \
79 $(srcdir)/filefrag.c $(srcdir)/base_device.c \
80 $(srcdir)/ismounted.c $(srcdir)/../e2fsck/profile.c \
81 $(srcdir)/e2undo.c $(srcdir)/e2freefrag.c
83 LIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
84 DEPLIBS= $(LIBEXT2FS) $(DEPLIBCOM_ERR)
85 PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR)
86 PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(DEPPROFILED_LIBCOM_ERR)
88 STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
89 STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
91 LIBS_E2P= $(LIBE2P) $(LIBCOM_ERR)
92 DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR)
94 COMPILE_ET=$(top_builddir)/lib/et/compile_et --build-tree
98 $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
99 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
101 all:: profiled $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES) \
102 $(FMANPAGES) $(LPROGS)
104 @PROFILE_CMT@all:: tune2fs.profiled blkid.profiled e2image.profiled \
105 e2undo.profiled mke2fs.profiled dumpe2fs.profiled fsck.profiled \
106 logsave.profiled filefrag.profiled uuidgen.profiled uuidd.profiled \
110 @PROFILE_CMT@ $(E) " MKDIR $@"
111 @PROFILE_CMT@ $(Q) mkdir profiled
113 prof_err.c prof_err.h: $(srcdir)/../e2fsck/prof_err.et
114 $(E) " COMPILE_ET prof_err.et"
115 $(Q) $(COMPILE_ET) $(srcdir)/../e2fsck/prof_err.et
117 default_profile.c: $(srcdir)/mke2fs.conf $(srcdir)/profile-to-c.awk
118 $(E) " PROFILE_TO_C mke2fs.conf"
119 $(Q) $(AWK) -f $(srcdir)/profile-to-c.awk < $(srcdir)/mke2fs.conf \
123 $(Q) $(CC) -c $(ALL_CFLAGS) $(srcdir)/../e2fsck/profile.c -o $@
124 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/profile.o -c \
125 @PROFILE_CMT@ $(srcdir)/../e2fsck/profile.c
127 findsuper: findsuper.o
129 $(Q) $(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o
133 $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
135 e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
137 $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
138 $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
140 tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
141 $(DEPLIBUUID) $(LIBEXT2FS)
143 $(Q) $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS) \
144 $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBS_E2P) $(LIBINTL)
146 tune2fs.static: $(TUNE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBBLKID)
148 $(Q) $(CC) $(LDFLAGS_STATIC) -o tune2fs.static $(TUNE2FS_OBJS) \
149 $(STATIC_LIBS) $(STATIC_LIBBLKID) $(STATIC_LIBUUID) \
150 $(STATIC_LIBE2P) $(LIBINTL)
152 tune2fs.profiled: $(PROFILED_TUNE2FS_OBJS) $(PROFILED_DEPLIBS) \
153 $(PROFILED_E2P) $(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID)
155 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o tune2fs.profiled \
156 $(PROFILED_TUNE2FS_OBJS) $(PROFILED_LIBBLKID) \
157 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \
160 blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS)
162 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \
165 blkid.static: $(BLKID_OBJS) $(STATIC_DEPLIBS) $(DEPSTATIC_LIBBLKID)
167 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid.static $(BLKID_OBJS) $(STATIC_LIBS) \
168 $(STATIC_LIBBLKID) $(LIBINTL)
170 blkid.profiled: $(PROFILED_BLKID_OBJS) $(DEPPROFILED_LIBBLKID) \
171 $(PROFILED_LIBEXT2FS)
173 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o blkid.profiled $(PROFILED_BLKID_OBJS) \
174 $(PROFILED_LIBBLKID) $(LIBINTL) $(PROFILED_LIBEXT2FS)
176 e2image: $(E2IMAGE_OBJS) $(DEPLIBS)
178 $(Q) $(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS) $(LIBINTL)
180 e2image.profiled: $(PROFILED_E2IMAGE_OBJS) $(PROFILED_DEPLIBS)
182 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2image.profiled \
183 $(PROFILED_E2IMAGE_OBJS) $(PROFILED_LIBS) $(LIBINTL)
185 e2undo: $(E2UNDO_OBJS) $(DEPLIBS)
187 $(Q) $(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) $(LIBINTL)
189 e2undo.profiled: $(PROFILED_E2UNDO_OBJS) $(PROFILED_DEPLIBS)
191 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2undo.profiled \
192 $(PROFILED_E2UNDO_OBJS) $(PROFILED_LIBS) $(LIBINTL)
194 base_device: base_device.c
196 $(Q) $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \
197 -DDEBUG -o base_device
200 ./base_device < $(srcdir)/base_device.tst > base_device.out
201 cmp $(srcdir)/base_device.tst base_device.out
203 mklost+found: $(MKLPF_OBJS)
205 $(Q) $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS) $(LIBINTL)
207 mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBBLKID) $(DEPLIBUUID) \
210 $(Q) $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBBLKID) \
211 $(LIBUUID) $(LIBEXT2FS) $(LIBE2P) $(LIBINTL)
213 mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID) $(DEPSTATIC_LIBBLKID)
215 $(Q) $(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \
216 $(STATIC_LIBS) $(STATIC_LIBE2P) $(STATIC_LIBBLKID) \
217 $(STATIC_LIBUUID) $(LIBINTL)
219 mke2fs.profiled: $(PROFILED_MKE2FS_OBJS) $(PROFILED_DEPLIBS) \
220 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBBLKID) $(PROFILED_DEPLIBUUID)
222 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o mke2fs.profiled \
223 $(PROFILED_MKE2FS_OBJS) $(PROFILED_LIBBLKID) \
224 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \
227 chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P)
229 $(Q) $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
231 lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P)
233 $(Q) $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
235 uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID)
237 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID) $(LIBINTL)
239 uuidgen.profiled: $(PROFILED_UUIDGEN_OBJS) $(PROFILED_DEPLIBUUID)
241 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidgen.profiled \
242 $(PROFILED_UUIDGEN_OBJS) $(PROFILED_LIBUUID) $(LIBINTL)
244 uuidd: $(UUIDD_OBJS) $(DEPLIBUUID)
246 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidd $(UUIDD_OBJS) $(LIBUUID) $(LIBINTL)
248 uuidd.profiled: $(PROFILED_UUIDD_OBJS) $(PROFILED_DEPLIBUUID)
250 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidd.profiled $(PROFILED_UUIDD_OBJS) \
251 $(PROFILED_LIBUUID) $(LIBINTL)
253 dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID)
255 $(Q) $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS) \
256 $(LIBS_E2P) $(LIBUUID) $(LIBINTL)
258 dumpe2fs.profiled: $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_DEPLIBS) \
259 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBUUID)
261 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o dumpe2fs.profiled \
262 $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
263 $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
265 fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
267 $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
269 fsck.profiled: $(PROFILED_FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
271 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o fsck.profiled $(PROFILED_FSCK_OBJS) \
272 $(PROFILED_LIBBLKID) $(LIBINTL)
274 badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
276 $(Q) $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) $(LIBINTL)
278 badblocks.profiled: $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_DEPLIBS)
280 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o badblocks.profiled \
281 $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_LIBS) $(LIBINTL)
285 $(Q) $(CC) $(ALL_LDFLAGS) -o logsave logsave.o
287 logsave.profiled: profiled/logsave.o
289 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o logsave.profiled profiled/logsave.o
291 e2freefrag: $(E2FREEFRAG_OBJS)
293 $(Q) $(CC) $(ALL_LDFLAGS) -o e2freefrag $(E2FREEFRAG_OBJS) $(LIBS)
295 filefrag: $(FILEFRAG_OBJS)
297 $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS)
299 filefrag.profiled: $(PROFILED_FILEFRAG_OBJS)
301 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o filefrag.profiled \
302 $(PROFILED_FILEFRAG_OBJS)
304 tst_ismounted: $(srcdir)/ismounted.c $(STATIC_LIBEXT2FS) $(DEPLIBCOM_ERR)
306 $(CC) -o tst_ismounted $(srcdir)/ismounted.c -DDEBUG $(ALL_CFLAGS) \
309 tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in
311 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/tune2fs.8.in tune2fs.8
313 mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in
315 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mklost+found.8.in mklost+found.8
317 mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in
319 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.8.in mke2fs.8
321 mke2fs.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.conf.5.in
323 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.conf.5.in mke2fs.conf.5
325 e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
327 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2label.8.in e2label.8
329 e2undo.8: $(DEP_SUBSTITUTE) $(srcdir)/e2undo.8.in
331 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2undo.8.in e2undo.8
333 findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in
335 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/findfs.8.in findfs.8
337 e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in
339 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2image.8.in e2image.8
341 dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in
343 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
345 badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in
347 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/badblocks.8.in badblocks.8
349 fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in
351 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/fsck.8.in fsck.8
353 blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in
355 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.8.in blkid.8
357 logsave.8: $(DEP_SUBSTITUTE) $(srcdir)/logsave.8.in
359 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/logsave.8.in logsave.8
361 uuidd.8: $(DEP_SUBSTITUTE) $(srcdir)/uuidd.8.in
363 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidd.8.in uuidd.8
365 chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in
367 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/chattr.1.in chattr.1
369 lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in
371 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/lsattr.1.in lsattr.1
373 uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in
375 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidgen.1.in uuidgen.1
377 blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in
379 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.1.in blkid.1
381 e2freefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e2freefrag.8.in
383 @$(SUBSTITUTE_UPTIME) $(srcdir)/e2freefrag.8.in e2freefrag.8
385 filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in
387 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8
390 $(E) " MKINSTALLDIRS $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)"
391 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) \
392 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \
393 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \
394 $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \
395 $(DESTDIR)$(libdir) $(DESTDIR)/$(root_sysconfdir)
397 install: all $(SMANPAGES) $(UMANPAGES) installdirs
398 $(Q) for i in $(SPROGS); do \
399 echo " INSTALL $(root_sbindir)/$$i"; \
400 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
402 $(Q) for i in $(USPROGS); do \
403 echo " INSTALL $(sbindir)/$$i"; \
404 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
406 $(E) " LINK $(root_sbindir)/mkfs.ext2"
407 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
408 $(DESTDIR)$(root_sbindir)/mkfs.ext2
409 $(E) " LINK $(root_sbindir)/mkfs.ext3"
410 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
411 $(DESTDIR)$(root_sbindir)/mkfs.ext3
412 $(E) " LINK $(root_sbindir)/mkfs.ext4"
413 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
414 $(DESTDIR)$(root_sbindir)/mkfs.ext4
415 $(E) " LINK $(root_sbindir)/mkfs.ext4dev"
416 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
417 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
418 $(E) " LINK $(root_sbindir)/e2label"
419 $(Q) $(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
420 $(DESTDIR)$(root_sbindir)/e2label
421 $(Q) if test -n "$(FINDFS_LINK)"; then \
422 echo " LINK $(root_sbindir)/findfs"; \
423 $(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
424 $(DESTDIR)$(root_sbindir)/$(FINDFS_LINK); \
426 $(Q) for i in $(UPROGS); do \
427 echo " INSTALL $(bindir)/$$i"; \
428 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \
430 $(Q) for i in $(LPROGS); do \
431 echo " INSTALL $(libdir)/$$i"; \
432 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libdir)/$$i; \
434 $(Q) for i in $(SMANPAGES); do \
435 for j in $(COMPRESS_EXT); do \
436 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
438 echo " INSTALL_DATA $(man8dir)/$$i"; \
439 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
441 $(Q) $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \
442 $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz
443 $(E) " LINK mkfs.ext2.8"
444 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
445 $(DESTDIR)$(man8dir)/mkfs.ext2.8
446 $(E) " LINK mkfs.ext3.8"
447 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
448 $(DESTDIR)$(man8dir)/mkfs.ext3.8
449 $(E) " LINK mkfs.ext4.8"
450 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
451 $(DESTDIR)$(man8dir)/mkfs.ext4.8
452 $(E) " LINK mkfs.ext4dev.8"
453 $(Q) $(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
454 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
455 $(Q) for i in $(UMANPAGES); do \
456 for j in $(COMPRESS_EXT); do \
457 $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \
459 echo " INSTALL_DATA $(man1dir)/$$i"; \
460 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
462 $(Q) for i in $(FMANPAGES); do \
463 for j in $(COMPRESS_EXT); do \
464 $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \
466 echo " INSTALL_DATA $(man5dir)/$$i"; \
467 $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
469 $(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
470 if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
471 $(srcdir)/mke2fs.conf; then \
474 if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \
475 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
476 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
477 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \
478 echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
479 echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \
481 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
482 mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
483 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \
484 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
485 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
486 echo "Your mke2fs.conf is too old. Backing up old version in"; \
487 echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old. Please check to see"; \
488 echo "if you have any local customizations that you wish to preserve."; \
493 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
494 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
495 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
498 install-strip: install
499 $(Q) for i in $(SPROGS); do \
500 echo " STRIP $(root_sbindir)/$$i"; \
501 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
503 $(Q) for i in $(USPROGS); do \
504 echo " STRIP $(sbindir)/$$i"; \
505 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
509 for i in $(SPROGS); do \
510 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
512 for i in $(USPROGS); do \
513 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
515 for i in $(LPROGS); do \
516 $(RM) -f $(DESTDIR)$(libdir)/$$i; \
518 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \
519 $(DESTDIR)$(root_sbindir)/mkfs.ext3 \
520 $(DESTDIR)$(root_sbindir)/mkfs.ext4 \
521 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
522 for i in $(UPROGS); do \
523 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
525 for i in $(SMANPAGES); do \
526 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
528 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \
529 $(DESTDIR)$(man8dir)/mkfs.ext3.8 \
530 $(DESTDIR)$(man8dir)/mkfs.ext4.8 \
531 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
532 for i in $(UMANPAGES); do \
533 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
535 for i in $(FINDFS_LINK) e2label ; do \
536 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
538 for i in $(FMANPAGES); do \
539 $(RM) -f $(DESTDIR)$(man5dir)/$$i; \
541 if cmp -s $(srcdir)/mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \
542 $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \
546 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
548 base_device base_device.out mke2fs.static filefrag e2freefrag \
549 e2initrd_helper partinfo prof_err.[ch] default_profile.c \
550 uuidd e2image tune2fs.static tst_ismounted fsck.profiled \
551 blkid.profiled tune2fs.profiled e2image.profiled \
552 e2undo.profiled mke2fs.profiled dumpe2fs.profiled \
553 logsave.profiled filefrag.profiled uuidgen.profiled \
554 uuidd.profiled e2image.profiled \
555 profiled/*.o \#* *.s *.o *.a *~ core gmon.out
559 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
561 # +++ Dependency line eater +++
563 # Makefile dependencies follow. This must be the last section in
564 # the Makefile.in file
566 tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
567 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
568 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
569 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
570 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
571 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
572 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
573 $(top_srcdir)/lib/ext2fs/kernel-list.h $(srcdir)/util.h \
574 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
575 mklost+found.o: $(srcdir)/mklost+found.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
576 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \
577 $(srcdir)/nls-enable.h
578 mke2fs.o: $(srcdir)/mke2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
579 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
580 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
581 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
582 $(top_builddir)/lib/ext2fs/ext2_err.h \
583 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
584 $(srcdir)/util.h $(srcdir)/../e2fsck/profile.h prof_err.h \
585 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
586 chattr.o: $(srcdir)/chattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
587 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
588 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
589 lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
590 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
591 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
592 dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
593 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
594 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
595 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
596 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
597 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
598 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
599 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/version.h \
600 $(srcdir)/nls-enable.h
601 badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
602 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
603 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
604 $(top_srcdir)/lib/ext2fs/ext3_extents.h \
605 $(top_builddir)/lib/ext2fs/ext2_err.h \
606 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
607 $(srcdir)/nls-enable.h
608 fsck.o: $(srcdir)/fsck.c $(top_srcdir)/version.h $(srcdir)/nls-enable.h \
610 util.o: $(srcdir)/util.c $(top_srcdir)/lib/et/com_err.h \
611 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
612 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
613 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
614 $(top_builddir)/lib/ext2fs/ext2_err.h \
615 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
616 $(srcdir)/nls-enable.h $(srcdir)/util.h
617 uuidgen.o: $(srcdir)/uuidgen.c $(srcdir)/nls-enable.h
618 blkid.o: $(srcdir)/blkid.c $(top_srcdir)/lib/ext2fs/ext2fs.h \
619 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
620 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
621 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
622 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
623 logsave.o: $(srcdir)/logsave.c
624 filefrag.o: $(srcdir)/filefrag.c $(top_builddir)/lib/ext2fs/ext2_types.h \
625 $(top_srcdir)/lib/ext2fs/fiemap.h
626 base_device.o: $(srcdir)/base_device.c $(srcdir)/fsck.h
627 ismounted.o: $(srcdir)/ismounted.c $(srcdir)/fsck.h \
628 $(top_srcdir)/lib/et/com_err.h
629 profile.o: $(srcdir)/../e2fsck/profile.c $(top_srcdir)/lib/et/com_err.h \
630 $(srcdir)/../e2fsck/profile.h prof_err.h
631 e2undo.o: $(srcdir)/e2undo.c $(top_srcdir)/lib/ext2fs/tdb.h \
632 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
633 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
634 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
635 $(top_builddir)/lib/ext2fs/ext2_err.h \
636 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
637 $(srcdir)/nls-enable.h
638 e2freefrag.o: $(srcdir)/e2freefrag.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
639 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
640 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
641 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
642 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
643 $(srcdir)/e2freefrag.h