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 $(Q) for i in ext2 ext3 ext4 ext4dev; do \
407 echo " LINK $(root_sbindir)/mkfs.$$i"; \
408 (cd $(DESTDIR)$(root_sbindir); \
409 $(LN) $(LINK_INSTALL_FLAGS) mke2fs mkfs.$$i); \
411 $(Q) (cd $(DESTDIR)$(root_sbindir); \
412 $(LN) $(LINK_INSTALL_FLAGS) tune2fs e2label)
413 $(Q) if test -n "$(FINDFS_LINK)"; then \
414 echo " LINK $(root_sbindir)/findfs"; \
415 (cd $(DESTDIR)$(root_sbindir); \
416 $(LN) $(LINK_INSTALL_FLAGS) tune2fs $(FINDFS_LINK)); \
418 $(Q) for i in $(UPROGS); do \
419 echo " INSTALL $(bindir)/$$i"; \
420 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \
422 $(Q) for i in $(LPROGS); do \
423 echo " INSTALL $(libdir)/$$i"; \
424 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libdir)/$$i; \
426 $(Q) for i in $(SMANPAGES); do \
427 for j in $(COMPRESS_EXT); do \
428 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
430 echo " INSTALL_DATA $(man8dir)/$$i"; \
431 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
433 $(Q) $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \
434 $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz
435 $(Q) for i in ext2 ext3 ext4 ext4dev; do \
436 echo " LINK mkfs.$$i.8"; \
437 (cd $(DESTDIR)$(man8dir); \
438 $(LN) $(LINK_INSTALL_FLAGS) mke2fs.8 mkfs.$$i.8); \
440 $(Q) for i in $(UMANPAGES); do \
441 for j in $(COMPRESS_EXT); do \
442 $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \
444 echo " INSTALL_DATA $(man1dir)/$$i"; \
445 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
447 $(Q) for i in $(FMANPAGES); do \
448 for j in $(COMPRESS_EXT); do \
449 $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \
451 echo " INSTALL_DATA $(man5dir)/$$i"; \
452 $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
454 $(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
455 if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
456 $(srcdir)/mke2fs.conf; then \
459 if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \
460 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
461 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
462 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \
463 echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
464 echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \
466 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
467 mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
468 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \
469 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
470 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
471 echo "Your mke2fs.conf is too old. Backing up old version in"; \
472 echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old. Please check to see"; \
473 echo "if you have any local customizations that you wish to preserve."; \
478 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
479 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
480 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
483 install-strip: install
484 $(Q) for i in $(SPROGS); do \
485 echo " STRIP $(root_sbindir)/$$i"; \
486 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
488 $(Q) for i in $(USPROGS); do \
489 echo " STRIP $(sbindir)/$$i"; \
490 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
494 for i in $(SPROGS); do \
495 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
497 for i in $(USPROGS); do \
498 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
500 for i in $(LPROGS); do \
501 $(RM) -f $(DESTDIR)$(libdir)/$$i; \
503 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \
504 $(DESTDIR)$(root_sbindir)/mkfs.ext3 \
505 $(DESTDIR)$(root_sbindir)/mkfs.ext4 \
506 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
507 for i in $(UPROGS); do \
508 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
510 for i in $(SMANPAGES); do \
511 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
513 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \
514 $(DESTDIR)$(man8dir)/mkfs.ext3.8 \
515 $(DESTDIR)$(man8dir)/mkfs.ext4.8 \
516 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
517 for i in $(UMANPAGES); do \
518 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
520 for i in $(FINDFS_LINK) e2label ; do \
521 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
523 for i in $(FMANPAGES); do \
524 $(RM) -f $(DESTDIR)$(man5dir)/$$i; \
526 if cmp -s $(srcdir)/mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \
527 $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \
531 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
533 base_device base_device.out mke2fs.static filefrag e2freefrag \
534 e2initrd_helper partinfo prof_err.[ch] default_profile.c \
535 uuidd e2image tune2fs.static tst_ismounted fsck.profiled \
536 blkid.profiled tune2fs.profiled e2image.profiled \
537 e2undo.profiled mke2fs.profiled dumpe2fs.profiled \
538 logsave.profiled filefrag.profiled uuidgen.profiled \
539 uuidd.profiled e2image.profiled \
540 profiled/*.o \#* *.s *.o *.a *~ core gmon.out
544 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
546 # +++ Dependency line eater +++
548 # Makefile dependencies follow. This must be the last section in
549 # the Makefile.in file
551 tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
552 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
553 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
554 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
555 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
556 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
557 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
558 $(top_srcdir)/lib/ext2fs/kernel-list.h $(srcdir)/util.h \
559 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
560 mklost+found.o: $(srcdir)/mklost+found.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
561 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \
562 $(srcdir)/nls-enable.h
563 mke2fs.o: $(srcdir)/mke2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
564 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
565 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
566 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
567 $(top_builddir)/lib/ext2fs/ext2_err.h \
568 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
569 $(srcdir)/util.h $(srcdir)/../e2fsck/profile.h prof_err.h \
570 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
571 chattr.o: $(srcdir)/chattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
572 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
573 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
574 lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
575 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
576 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
577 dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
578 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
579 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
580 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
581 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
582 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
583 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
584 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/version.h \
585 $(srcdir)/nls-enable.h
586 badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
587 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
588 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
589 $(top_srcdir)/lib/ext2fs/ext3_extents.h \
590 $(top_builddir)/lib/ext2fs/ext2_err.h \
591 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
592 $(srcdir)/nls-enable.h
593 fsck.o: $(srcdir)/fsck.c $(top_srcdir)/version.h $(srcdir)/nls-enable.h \
595 util.o: $(srcdir)/util.c $(top_srcdir)/lib/et/com_err.h \
596 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
597 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
598 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
599 $(top_builddir)/lib/ext2fs/ext2_err.h \
600 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
601 $(srcdir)/nls-enable.h $(srcdir)/util.h
602 uuidgen.o: $(srcdir)/uuidgen.c $(srcdir)/nls-enable.h
603 blkid.o: $(srcdir)/blkid.c $(top_srcdir)/lib/ext2fs/ext2fs.h \
604 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
605 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
606 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
607 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
608 logsave.o: $(srcdir)/logsave.c
609 filefrag.o: $(srcdir)/filefrag.c $(top_builddir)/lib/ext2fs/ext2_types.h \
610 $(top_srcdir)/lib/ext2fs/fiemap.h
611 base_device.o: $(srcdir)/base_device.c $(srcdir)/fsck.h
612 ismounted.o: $(srcdir)/ismounted.c $(srcdir)/fsck.h \
613 $(top_srcdir)/lib/et/com_err.h
614 profile.o: $(srcdir)/../e2fsck/profile.c $(top_srcdir)/lib/et/com_err.h \
615 $(srcdir)/../e2fsck/profile.h prof_err.h
616 e2undo.o: $(srcdir)/e2undo.c $(top_srcdir)/lib/ext2fs/tdb.h \
617 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
618 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
619 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
620 $(top_builddir)/lib/ext2fs/ext2_err.h \
621 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
622 $(srcdir)/nls-enable.h
623 e2freefrag.o: $(srcdir)/e2freefrag.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
624 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
625 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
626 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
627 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
628 $(srcdir)/e2freefrag.h