]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - misc/Makefile.in
Merge branch 'maint' into next
[thirdparty/e2fsprogs.git] / misc / Makefile.in
1 #
2 # Standard e2fsprogs prologue....
3 #
4
5 srcdir = @srcdir@
6 top_srcdir = @top_srcdir@
7 VPATH = @srcdir@
8 top_builddir = ..
9 my_dir = misc
10 INSTALL = @INSTALL@
11
12 @MCONFIG@
13
14 @DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_PROG= e4defrag
15 @DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_MAN= e4defrag.8
16
17 @IMAGER_CMT@E2IMAGE_PROG= e2image
18 @IMAGER_CMT@E2IMAGE_MAN= e2image.8
19
20 @UUIDD_CMT@UUIDD_PROG= uuidd
21 @UUIDD_CMT@UUIDD_MAN= uuidd.8
22
23 @BLKID_CMT@BLKID_PROG= blkid
24 @BLKID_CMT@BLKID_MAN= blkid.8
25
26 @BLKID_CMT@FINDFS_LINK= findfs
27 @BLKID_CMT@FINDFS_MAN= findfs.8
28
29 SPROGS= mke2fs badblocks tune2fs dumpe2fs $(BLKID_PROG) logsave \
30 $(E2IMAGE_PROG) @FSCK_PROG@ e2undo
31 USPROGS= mklost+found filefrag e2freefrag $(UUIDD_PROG) $(E4DEFRAG_PROG)
32 SMANPAGES= tune2fs.8 mklost+found.8 mke2fs.8 dumpe2fs.8 badblocks.8 \
33 e2label.8 $(FINDFS_MAN) $(BLKID_MAN) $(E2IMAGE_MAN) \
34 logsave.8 filefrag.8 e2freefrag.8 e2undo.8 \
35 $(UUIDD_MAN) $(E4DEFRAG_MAN) @FSCK_MAN@
36 FMANPAGES= mke2fs.conf.5
37
38 UPROGS= chattr lsattr @UUID_CMT@ uuidgen
39 UMANPAGES= chattr.1 lsattr.1 @UUID_CMT@ uuidgen.1
40
41 LPROGS= @E2INITRD_PROG@
42
43 TUNE2FS_OBJS= tune2fs.o util.o
44 MKLPF_OBJS= mklost+found.o
45 MKE2FS_OBJS= mke2fs.o util.o profile.o prof_err.o default_profile.o
46 CHATTR_OBJS= chattr.o
47 LSATTR_OBJS= lsattr.o
48 UUIDGEN_OBJS= uuidgen.o
49 UUIDD_OBJS= uuidd.o
50 DUMPE2FS_OBJS= dumpe2fs.o
51 BADBLOCKS_OBJS= badblocks.o
52 E2IMAGE_OBJS= e2image.o
53 FSCK_OBJS= fsck.o base_device.o ismounted.o
54 BLKID_OBJS= blkid.o
55 FILEFRAG_OBJS= filefrag.o
56 E2UNDO_OBJS= e2undo.o
57 E4DEFRAG_OBJS= e4defrag.o
58 E2FREEFRAG_OBJS= e2freefrag.o
59
60 PROFILED_TUNE2FS_OBJS= profiled/tune2fs.o profiled/util.o
61 PROFILED_MKLPF_OBJS= profiled/mklost+found.o
62 PROFILED_MKE2FS_OBJS= profiled/mke2fs.o profiled/util.o profiled/profile.o \
63 profiled/prof_err.o profiled/default_profile.o
64 PROFILED_CHATTR_OBJS= profiled/chattr.o
65 PROFILED_LSATTR_OBJS= profiled/lsattr.o
66 PROFILED_UUIDGEN_OBJS= profiled/uuidgen.o
67 PROFILED_UUIDD_OBJS= profiled/uuidd.o
68 PROFILED_DUMPE2FS_OBJS= profiled/dumpe2fs.o
69 PROFILED_BADBLOCKS_OBJS= profiled/badblocks.o
70 PROFILED_E2IMAGE_OBJS= profiled/e2image.o
71 PROFILED_FSCK_OBJS= profiled/fsck.o profiled/base_device.o \
72 profiled/ismounted.o
73 PROFILED_BLKID_OBJS= profiled/blkid.o
74 PROFILED_FILEFRAG_OBJS= profiled/filefrag.o
75 PROFILED_E2UNDO_OBJS= profiled/e2undo.o
76 PROFILED_E4DEFRAG_OBJS= profiled/e4defrag.o
77
78 XTRA_CFLAGS= -I$(srcdir)/../e2fsck -I.
79
80 SRCS= $(srcdir)/tune2fs.c $(srcdir)/mklost+found.c $(srcdir)/mke2fs.c \
81 $(srcdir)/chattr.c $(srcdir)/lsattr.c $(srcdir)/dumpe2fs.c \
82 $(srcdir)/badblocks.c $(srcdir)/fsck.c $(srcdir)/util.c \
83 $(srcdir)/uuidgen.c $(srcdir)/blkid.c $(srcdir)/logsave.c \
84 $(srcdir)/filefrag.c $(srcdir)/base_device.c \
85 $(srcdir)/ismounted.c $(srcdir)/../e2fsck/profile.c \
86 $(srcdir)/e2undo.c $(srcdir)/e2freefrag.c
87
88 LIBS= $(LIBEXT2FS) $(LIBCOM_ERR)
89 DEPLIBS= $(LIBEXT2FS) $(DEPLIBCOM_ERR)
90 PROFILED_LIBS= $(PROFILED_LIBEXT2FS) $(PROFILED_LIBCOM_ERR)
91 PROFILED_DEPLIBS= $(PROFILED_LIBEXT2FS) $(DEPPROFILED_LIBCOM_ERR)
92
93 STATIC_LIBS= $(STATIC_LIBEXT2FS) $(STATIC_LIBCOM_ERR)
94 STATIC_DEPLIBS= $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
95
96 LIBS_E2P= $(LIBE2P) $(LIBCOM_ERR)
97 DEPLIBS_E2P= $(LIBE2P) $(DEPLIBCOM_ERR)
98
99 COMPILE_ET=$(top_builddir)/lib/et/compile_et --build-tree
100
101 .c.o:
102 $(E) " CC $<"
103 $(Q) $(CC) -c $(ALL_CFLAGS) $< -o $@
104 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
105
106 all:: profiled $(SPROGS) $(UPROGS) $(USPROGS) $(SMANPAGES) $(UMANPAGES) \
107 $(FMANPAGES) $(LPROGS) $(E4DEFRAG_PROG)
108
109 @PROFILE_CMT@all:: tune2fs.profiled blkid.profiled e2image.profiled \
110 e2undo.profiled mke2fs.profiled dumpe2fs.profiled fsck.profiled \
111 logsave.profiled filefrag.profiled uuidgen.profiled uuidd.profiled \
112 e2image.profiled e4defrag.profiled
113
114 profiled:
115 @PROFILE_CMT@ $(E) " MKDIR $@"
116 @PROFILE_CMT@ $(Q) mkdir profiled
117
118 prof_err.c prof_err.h: $(srcdir)/../e2fsck/prof_err.et
119 $(E) " COMPILE_ET prof_err.et"
120 $(Q) $(COMPILE_ET) $(srcdir)/../e2fsck/prof_err.et
121
122 default_profile.c: $(srcdir)/mke2fs.conf $(srcdir)/profile-to-c.awk
123 $(E) " PROFILE_TO_C mke2fs.conf"
124 $(Q) $(AWK) -f $(srcdir)/profile-to-c.awk < $(srcdir)/mke2fs.conf \
125 > default_profile.c
126 profile.o:
127 $(E) " CC $<"
128 $(Q) $(CC) -c $(ALL_CFLAGS) $(srcdir)/../e2fsck/profile.c -o $@
129 @PROFILE_CMT@ $(Q) $(CC) $(ALL_CFLAGS) -g -pg -o profiled/profile.o -c \
130 @PROFILE_CMT@ $(srcdir)/../e2fsck/profile.c
131
132 findsuper: findsuper.o
133 $(E) " LD $@"
134 $(Q) $(CC) $(ALL_LDFLAGS) -o findsuper findsuper.o $(LIBS)
135
136 partinfo: partinfo.o
137 $(E) " LD $@"
138 $(Q) $(CC) $(ALL_LDFLAGS) -o partinfo partinfo.o
139
140 e2initrd_helper: e2initrd_helper.o $(DEPLIBS) $(DEPLIBBLKID) $(LIBEXT2FS)
141 $(E) " LD $@"
142 $(Q) $(CC) $(ALL_LDFLAGS) -o e2initrd_helper e2initrd_helper.o $(LIBS) \
143 $(LIBBLKID) $(LIBEXT2FS) $(LIBINTL)
144
145 tune2fs: $(TUNE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBBLKID) \
146 $(DEPLIBUUID) $(LIBEXT2FS)
147 $(E) " LD $@"
148 $(Q) $(CC) $(ALL_LDFLAGS) -o tune2fs $(TUNE2FS_OBJS) $(LIBS) \
149 $(LIBBLKID) $(LIBUUID) $(LIBEXT2FS) $(LIBS_E2P) $(LIBINTL)
150
151 tune2fs.static: $(TUNE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBBLKID)
152 $(E) " LD $@"
153 $(Q) $(CC) $(LDFLAGS_STATIC) -o tune2fs.static $(TUNE2FS_OBJS) \
154 $(STATIC_LIBS) $(STATIC_LIBBLKID) $(STATIC_LIBUUID) \
155 $(STATIC_LIBE2P) $(LIBINTL)
156
157 tune2fs.profiled: $(PROFILED_TUNE2FS_OBJS) $(PROFILED_DEPLIBS) \
158 $(PROFILED_E2P) $(DEPPROFILED_LIBBLKID) $(DEPPROFILED_LIBUUID)
159 $(E) " LD $@"
160 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o tune2fs.profiled \
161 $(PROFILED_TUNE2FS_OBJS) $(PROFILED_LIBBLKID) \
162 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \
163 $(PROFILED_LIBS)
164
165 blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS)
166 $(E) " LD $@"
167 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \
168 $(LIBEXT2FS)
169
170 blkid.static: $(BLKID_OBJS) $(STATIC_DEPLIBS) $(DEPSTATIC_LIBBLKID)
171 $(E) " LD $@"
172 $(Q) $(CC) $(ALL_LDFLAGS) -o blkid.static $(BLKID_OBJS) $(STATIC_LIBS) \
173 $(STATIC_LIBBLKID) $(LIBINTL)
174
175 blkid.profiled: $(PROFILED_BLKID_OBJS) $(DEPPROFILED_LIBBLKID) \
176 $(PROFILED_LIBEXT2FS)
177 $(E) " LD $@"
178 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o blkid.profiled $(PROFILED_BLKID_OBJS) \
179 $(PROFILED_LIBBLKID) $(LIBINTL) $(PROFILED_LIBEXT2FS)
180
181 e2image: $(E2IMAGE_OBJS) $(DEPLIBS)
182 $(E) " LD $@"
183 $(Q) $(CC) $(ALL_LDFLAGS) -o e2image $(E2IMAGE_OBJS) $(LIBS) $(LIBINTL)
184
185 e2image.profiled: $(PROFILED_E2IMAGE_OBJS) $(PROFILED_DEPLIBS)
186 $(E) " LD $@"
187 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2image.profiled \
188 $(PROFILED_E2IMAGE_OBJS) $(PROFILED_LIBS) $(LIBINTL)
189
190 e2undo: $(E2UNDO_OBJS) $(DEPLIBS)
191 $(E) " LD $@"
192 $(Q) $(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) $(LIBINTL)
193
194 e2undo.profiled: $(PROFILED_E2UNDO_OBJS) $(PROFILED_DEPLIBS)
195 $(E) " LD $@"
196 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e2undo.profiled \
197 $(PROFILED_E2UNDO_OBJS) $(PROFILED_LIBS) $(LIBINTL)
198
199 e4defrag: $(E4DEFRAG_OBJS) $(DEPLIBS)
200 $(E) " LD $@"
201 $(Q) $(CC) $(ALL_LDFLAGS) -o e4defrag $(E4DEFRAG_OBJS) $(LIBS)
202
203 e4defrag.profiled: $(PROFILED_E4DEFRAG_OBJS) $(PROFILED_DEPLIBS)
204 $(E) " LD $@"
205 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o e4defrag.profiled \
206 $(PROFILED_E4DEFRAG_OBJS) $(PROFILED_LIBS)
207
208 base_device: base_device.c
209 $(E) " LD $@"
210 $(Q) $(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(srcdir)/base_device.c \
211 -DDEBUG -o base_device
212
213 check:: base_device
214 ./base_device < $(srcdir)/base_device.tst > base_device.out
215 cmp $(srcdir)/base_device.tst base_device.out
216
217 mklost+found: $(MKLPF_OBJS)
218 $(E) " LD $@"
219 $(Q) $(CC) $(ALL_LDFLAGS) -o mklost+found $(MKLPF_OBJS) $(LIBINTL)
220
221 mke2fs: $(MKE2FS_OBJS) $(DEPLIBS) $(LIBE2P) $(DEPLIBBLKID) $(DEPLIBUUID) \
222 $(LIBEXT2FS)
223 $(E) " LD $@"
224 $(Q) $(CC) $(ALL_LDFLAGS) -o mke2fs $(MKE2FS_OBJS) $(LIBS) $(LIBBLKID) \
225 $(LIBUUID) $(LIBEXT2FS) $(LIBE2P) $(LIBINTL)
226
227 mke2fs.static: $(MKE2FS_OBJS) $(STATIC_DEPLIBS) $(STATIC_LIBE2P) $(DEPSTATIC_LIBUUID) $(DEPSTATIC_LIBBLKID)
228 $(E) " LD $@"
229 $(Q) $(CC) $(ALL_LDFLAGS) -static -o mke2fs.static $(MKE2FS_OBJS) \
230 $(STATIC_LIBS) $(STATIC_LIBE2P) $(STATIC_LIBBLKID) \
231 $(STATIC_LIBUUID) $(LIBINTL)
232
233 mke2fs.profiled: $(PROFILED_MKE2FS_OBJS) $(PROFILED_DEPLIBS) \
234 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBBLKID) $(PROFILED_DEPLIBUUID)
235 $(E) " LD $@"
236 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o mke2fs.profiled \
237 $(PROFILED_MKE2FS_OBJS) $(PROFILED_LIBBLKID) \
238 $(PROFILED_LIBUUID) $(PROFILED_LIBE2P) $(LIBINTL) \
239 $(PROFILED_LIBS)
240
241 chattr: $(CHATTR_OBJS) $(DEPLIBS_E2P)
242 $(E) " LD $@"
243 $(Q) $(CC) $(ALL_LDFLAGS) -o chattr $(CHATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
244
245 lsattr: $(LSATTR_OBJS) $(DEPLIBS_E2P)
246 $(E) " LD $@"
247 $(Q) $(CC) $(ALL_LDFLAGS) -o lsattr $(LSATTR_OBJS) $(LIBS_E2P) $(LIBINTL)
248
249 uuidgen: $(UUIDGEN_OBJS) $(DEPLIBUUID)
250 $(E) " LD $@"
251 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidgen $(UUIDGEN_OBJS) $(LIBUUID) $(LIBINTL)
252
253 uuidgen.profiled: $(PROFILED_UUIDGEN_OBJS) $(PROFILED_DEPLIBUUID)
254 $(E) " LD $@"
255 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidgen.profiled \
256 $(PROFILED_UUIDGEN_OBJS) $(PROFILED_LIBUUID) $(LIBINTL)
257
258 uuidd: $(UUIDD_OBJS) $(DEPLIBUUID)
259 $(E) " LD $@"
260 $(Q) $(CC) $(ALL_LDFLAGS) -o uuidd $(UUIDD_OBJS) $(LIBUUID) $(LIBINTL)
261
262 uuidd.profiled: $(PROFILED_UUIDD_OBJS) $(PROFILED_DEPLIBUUID)
263 $(E) " LD $@"
264 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o uuidd.profiled $(PROFILED_UUIDD_OBJS) \
265 $(PROFILED_LIBUUID) $(LIBINTL)
266
267 dumpe2fs: $(DUMPE2FS_OBJS) $(DEPLIBS) $(DEPLIBS_E2P) $(DEPLIBUUID)
268 $(E) " LD $@"
269 $(Q) $(CC) $(ALL_LDFLAGS) -o dumpe2fs $(DUMPE2FS_OBJS) $(LIBS) \
270 $(LIBS_E2P) $(LIBUUID) $(LIBINTL)
271
272 dumpe2fs.profiled: $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_DEPLIBS) \
273 $(PROFILED_LIBE2P) $(PROFILED_DEPLIBUUID)
274 $(E) " LD $@"
275 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o dumpe2fs.profiled \
276 $(PROFILED_DUMPE2FS_OBJS) $(PROFILED_LIBS) \
277 $(PROFILED_LIBE2P) $(PROFILED_LIBUUID) $(LIBINTL)
278
279 fsck: $(FSCK_OBJS) $(DEPLIBBLKID)
280 $(E) " LD $@"
281 $(Q) $(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBBLKID) $(LIBINTL)
282
283 fsck.profiled: $(PROFILED_FSCK_OBJS) $(PROFILED_DEPLIBBLKID)
284 $(E) " LD $@"
285 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o fsck.profiled $(PROFILED_FSCK_OBJS) \
286 $(PROFILED_LIBBLKID) $(LIBINTL)
287
288 badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
289 $(E) " LD $@"
290 $(Q) $(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) $(LIBINTL)
291
292 badblocks.profiled: $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_DEPLIBS)
293 $(E) " LD $@"
294 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o badblocks.profiled \
295 $(PROFILED_BADBLOCKS_OBJS) $(PROFILED_LIBS) $(LIBINTL)
296
297 logsave: logsave.o
298 $(E) " LD $@"
299 $(Q) $(CC) $(ALL_LDFLAGS) -o logsave logsave.o
300
301 logsave.profiled: profiled/logsave.o
302 $(E) " LD $@"
303 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o logsave.profiled profiled/logsave.o
304
305 e2freefrag: $(E2FREEFRAG_OBJS)
306 $(E) " LD $@"
307 $(Q) $(CC) $(ALL_LDFLAGS) -o e2freefrag $(E2FREEFRAG_OBJS) $(LIBS)
308
309 filefrag: $(FILEFRAG_OBJS)
310 $(E) " LD $@"
311 $(Q) $(CC) $(ALL_LDFLAGS) -o filefrag $(FILEFRAG_OBJS)
312
313 filefrag.profiled: $(PROFILED_FILEFRAG_OBJS)
314 $(E) " LD $@"
315 $(Q) $(CC) $(ALL_LDFLAGS) -g -pg -o filefrag.profiled \
316 $(PROFILED_FILEFRAG_OBJS)
317
318 tst_ismounted: $(srcdir)/ismounted.c $(STATIC_LIBEXT2FS) $(DEPLIBCOM_ERR)
319 $(E) " LD $@"
320 $(CC) -o tst_ismounted $(srcdir)/ismounted.c -DDEBUG $(ALL_CFLAGS) \
321 $(LIBCOM_ERR)
322
323 tune2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/tune2fs.8.in
324 $(E) " SUBST $@"
325 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/tune2fs.8.in tune2fs.8
326
327 mklost+found.8: $(DEP_SUBSTITUTE) $(srcdir)/mklost+found.8.in
328 $(E) " SUBST $@"
329 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mklost+found.8.in mklost+found.8
330
331 mke2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.8.in
332 $(E) " SUBST $@"
333 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.8.in mke2fs.8
334
335 mke2fs.conf.5: $(DEP_SUBSTITUTE) $(srcdir)/mke2fs.conf.5.in
336 $(E) " SUBST $@"
337 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/mke2fs.conf.5.in mke2fs.conf.5
338
339 e2label.8: $(DEP_SUBSTITUTE) $(srcdir)/e2label.8.in
340 $(E) " SUBST $@"
341 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2label.8.in e2label.8
342
343 e2undo.8: $(DEP_SUBSTITUTE) $(srcdir)/e2undo.8.in
344 $(E) " SUBST $@"
345 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2undo.8.in e2undo.8
346
347 findfs.8: $(DEP_SUBSTITUTE) $(srcdir)/findfs.8.in
348 $(E) " SUBST $@"
349 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/findfs.8.in findfs.8
350
351 e2image.8: $(DEP_SUBSTITUTE) $(srcdir)/e2image.8.in
352 $(E) " SUBST $@"
353 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e2image.8.in e2image.8
354
355 e4defrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e4defrag.8.in
356 $(E) " SUBST $@"
357 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/e4defrag.8.in e4defrag.8
358
359 dumpe2fs.8: $(DEP_SUBSTITUTE) $(srcdir)/dumpe2fs.8.in
360 $(E) " SUBST $@"
361 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/dumpe2fs.8.in dumpe2fs.8
362
363 badblocks.8: $(DEP_SUBSTITUTE) $(srcdir)/badblocks.8.in
364 $(E) " SUBST $@"
365 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/badblocks.8.in badblocks.8
366
367 fsck.8: $(DEP_SUBSTITUTE) $(srcdir)/fsck.8.in
368 $(E) " SUBST $@"
369 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/fsck.8.in fsck.8
370
371 blkid.8: $(DEP_SUBSTITUTE) $(srcdir)/blkid.8.in
372 $(E) " SUBST $@"
373 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.8.in blkid.8
374
375 logsave.8: $(DEP_SUBSTITUTE) $(srcdir)/logsave.8.in
376 $(E) " SUBST $@"
377 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/logsave.8.in logsave.8
378
379 uuidd.8: $(DEP_SUBSTITUTE) $(srcdir)/uuidd.8.in
380 $(E) " SUBST $@"
381 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidd.8.in uuidd.8
382
383 chattr.1: $(DEP_SUBSTITUTE) $(srcdir)/chattr.1.in
384 $(E) " SUBST $@"
385 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/chattr.1.in chattr.1
386
387 lsattr.1: $(DEP_SUBSTITUTE) $(srcdir)/lsattr.1.in
388 $(E) " SUBST $@"
389 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/lsattr.1.in lsattr.1
390
391 uuidgen.1: $(DEP_SUBSTITUTE) $(srcdir)/uuidgen.1.in
392 $(E) " SUBST $@"
393 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/uuidgen.1.in uuidgen.1
394
395 blkid.1: $(DEP_SUBSTITUTE) $(srcdir)/blkid.1.in
396 $(E) " SUBST $@"
397 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/blkid.1.in blkid.1
398
399 e2freefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/e2freefrag.8.in
400 @echo " SUBST $@"
401 @$(SUBSTITUTE_UPTIME) $(srcdir)/e2freefrag.8.in e2freefrag.8
402
403 filefrag.8: $(DEP_SUBSTITUTE) $(srcdir)/filefrag.8.in
404 $(E) " SUBST $@"
405 $(Q) $(SUBSTITUTE_UPTIME) $(srcdir)/filefrag.8.in filefrag.8
406
407 installdirs:
408 $(E) " MKINSTALLDIRS $(sbindir) $(root_sbindir) $(bindir) $(man1dir) $(man8dir) $(libdir) $(root_sysconfdir)"
409 $(Q) $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) \
410 $(DESTDIR)$(root_sbindir) $(DESTDIR)$(bindir) \
411 $(DESTDIR)$(man1dir) $(DESTDIR)$(man8dir) \
412 $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) \
413 $(DESTDIR)$(libdir) $(DESTDIR)/$(root_sysconfdir)
414
415 install: all $(SMANPAGES) $(UMANPAGES) installdirs
416 $(Q) for i in $(SPROGS); do \
417 echo " INSTALL $(root_sbindir)/$$i"; \
418 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
419 done
420 $(Q) for i in $(USPROGS); do \
421 echo " INSTALL $(sbindir)/$$i"; \
422 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
423 done
424 $(Q) for i in ext2 ext3 ext4 ext4dev; do \
425 echo " LINK $(root_sbindir)/mkfs.$$i"; \
426 (cd $(DESTDIR)$(root_sbindir); \
427 $(LN) $(LINK_INSTALL_FLAGS) mke2fs mkfs.$$i); \
428 done
429 $(Q) (cd $(DESTDIR)$(root_sbindir); \
430 $(LN) $(LINK_INSTALL_FLAGS) tune2fs e2label)
431 $(Q) if test -n "$(FINDFS_LINK)"; then \
432 echo " LINK $(root_sbindir)/findfs"; \
433 (cd $(DESTDIR)$(root_sbindir); \
434 $(LN) $(LINK_INSTALL_FLAGS) tune2fs $(FINDFS_LINK)); \
435 fi
436 $(Q) for i in $(UPROGS); do \
437 echo " INSTALL $(bindir)/$$i"; \
438 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/$$i; \
439 done
440 $(Q) for i in $(LPROGS); do \
441 echo " INSTALL $(libdir)/$$i"; \
442 $(INSTALL_PROGRAM) $$i $(DESTDIR)$(libdir)/$$i; \
443 done
444 $(Q) for i in $(SMANPAGES); do \
445 for j in $(COMPRESS_EXT); do \
446 $(RM) -f $(DESTDIR)$(man8dir)/$$i.$$j; \
447 done; \
448 echo " INSTALL_DATA $(man8dir)/$$i"; \
449 $(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$i; \
450 done
451 $(Q) $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \
452 $(DESTDIR)$(man8dir)/mkfs.ext3.8.gz
453 $(Q) for i in ext2 ext3 ext4 ext4dev; do \
454 echo " LINK mkfs.$$i.8"; \
455 (cd $(DESTDIR)$(man8dir); \
456 $(LN) $(LINK_INSTALL_FLAGS) mke2fs.8 mkfs.$$i.8); \
457 done
458 $(Q) for i in $(UMANPAGES); do \
459 for j in $(COMPRESS_EXT); do \
460 $(RM) -f $(DESTDIR)$(man1dir)/$$i.$$j; \
461 done; \
462 echo " INSTALL_DATA $(man1dir)/$$i"; \
463 $(INSTALL_DATA) $$i $(DESTDIR)$(man1dir)/$$i; \
464 done
465 $(Q) for i in $(FMANPAGES); do \
466 for j in $(COMPRESS_EXT); do \
467 $(RM) -f $(DESTDIR)$(man5dir)/$$i.$$j; \
468 done; \
469 echo " INSTALL_DATA $(man5dir)/$$i"; \
470 $(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
471 done
472 $(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
473 if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
474 $(srcdir)/mke2fs.conf; then \
475 true; \
476 else \
477 if grep -q ext4dev $(DESTDIR)$(root_sysconfdir)/mke2fs.conf ; then \
478 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
479 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
480 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new; \
481 echo "Warning: installing mke2fs.conf in $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-new"; \
482 echo "Check to see if you need to update your $(root_sysconfdir)/mke2fs.conf"; \
483 else \
484 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
485 mv $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
486 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old; \
487 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
488 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
489 echo "Your mke2fs.conf is too old. Backing up old version in"; \
490 echo "$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.e2fsprogs-old. Please check to see"; \
491 echo "if you have any local customizations that you wish to preserve."; \
492 fi; \
493 echo " "; \
494 fi; \
495 else \
496 echo " INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
497 $(INSTALL_DATA) $(srcdir)/mke2fs.conf \
498 $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
499 fi
500
501 install-strip: install
502 $(Q) for i in $(SPROGS); do \
503 echo " STRIP $(root_sbindir)/$$i"; \
504 $(STRIP) $(DESTDIR)$(root_sbindir)/$$i; \
505 done
506 $(Q) for i in $(USPROGS); do \
507 echo " STRIP $(sbindir)/$$i"; \
508 $(STRIP) $(DESTDIR)$(sbindir)/$$i; \
509 done
510
511 uninstall:
512 for i in $(SPROGS); do \
513 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
514 done
515 for i in $(USPROGS); do \
516 $(RM) -f $(DESTDIR)$(sbindir)/$$i; \
517 done
518 for i in $(LPROGS); do \
519 $(RM) -f $(DESTDIR)$(libdir)/$$i; \
520 done
521 $(RM) -f $(DESTDIR)$(root_sbindir)/mkfs.ext2 \
522 $(DESTDIR)$(root_sbindir)/mkfs.ext3 \
523 $(DESTDIR)$(root_sbindir)/mkfs.ext4 \
524 $(DESTDIR)$(root_sbindir)/mkfs.ext4dev
525 for i in $(UPROGS); do \
526 $(RM) -f $(DESTDIR)$(bindir)/$$i; \
527 done
528 for i in $(SMANPAGES); do \
529 $(RM) -f $(DESTDIR)$(man8dir)/$$i; \
530 done
531 $(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8 \
532 $(DESTDIR)$(man8dir)/mkfs.ext3.8 \
533 $(DESTDIR)$(man8dir)/mkfs.ext4.8 \
534 $(DESTDIR)$(man8dir)/mkfs.ext4dev.8
535 for i in $(UMANPAGES); do \
536 $(RM) -f $(DESTDIR)$(man1dir)/$$i; \
537 done
538 for i in $(FINDFS_LINK) e2label ; do \
539 $(RM) -f $(DESTDIR)$(root_sbindir)/$$i; \
540 done
541 for i in $(FMANPAGES); do \
542 $(RM) -f $(DESTDIR)$(man5dir)/$$i; \
543 done
544 if cmp -s $(srcdir)/mke2fs.conf $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; then \
545 $(RM) $(DESTDIR)/$(root_sysconfdir)/mke2fs.conf; \
546 fi
547
548 clean:
549 $(RM) -f $(SPROGS) $(USPROGS) $(UPROGS) $(UMANPAGES) $(SMANPAGES) \
550 $(FMANPAGES) \
551 base_device base_device.out mke2fs.static filefrag e2freefrag \
552 e2initrd_helper partinfo prof_err.[ch] default_profile.c \
553 uuidd e2image tune2fs.static tst_ismounted fsck.profiled \
554 blkid.profiled tune2fs.profiled e2image.profiled \
555 e2undo.profiled mke2fs.profiled dumpe2fs.profiled \
556 logsave.profiled filefrag.profiled uuidgen.profiled \
557 uuidd.profiled e2image.profiled \
558 profiled/*.o \#* *.s *.o *.a *~ core gmon.out
559
560 mostlyclean: clean
561 distclean: clean
562 $(RM) -f .depend Makefile $(srcdir)/TAGS $(srcdir)/Makefile.in.old
563
564 # +++ Dependency line eater +++
565 #
566 # Makefile dependencies follow. This must be the last section in
567 # the Makefile.in file
568 #
569 tune2fs.o: $(srcdir)/tune2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
570 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
571 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
572 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
573 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
574 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
575 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
576 $(top_srcdir)/lib/ext2fs/kernel-list.h $(srcdir)/util.h \
577 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
578 mklost+found.o: $(srcdir)/mklost+found.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
579 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/version.h \
580 $(srcdir)/nls-enable.h
581 mke2fs.o: $(srcdir)/mke2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
582 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
583 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
584 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
585 $(top_builddir)/lib/ext2fs/ext2_err.h \
586 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
587 $(srcdir)/util.h $(srcdir)/../e2fsck/profile.h prof_err.h \
588 $(top_srcdir)/version.h $(srcdir)/nls-enable.h
589 chattr.o: $(srcdir)/chattr.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 lsattr.o: $(srcdir)/lsattr.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
593 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/et/com_err.h \
594 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/version.h $(srcdir)/nls-enable.h
595 dumpe2fs.o: $(srcdir)/dumpe2fs.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
596 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
597 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
598 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
599 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
600 $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/jfs_user.h \
601 $(top_srcdir)/lib/ext2fs/kernel-jbd.h $(top_srcdir)/lib/ext2fs/jfs_compat.h \
602 $(top_srcdir)/lib/ext2fs/kernel-list.h $(top_srcdir)/version.h \
603 $(srcdir)/nls-enable.h
604 badblocks.o: $(srcdir)/badblocks.c $(top_srcdir)/lib/et/com_err.h \
605 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
606 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
607 $(top_srcdir)/lib/ext2fs/ext3_extents.h \
608 $(top_builddir)/lib/ext2fs/ext2_err.h \
609 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
610 $(srcdir)/nls-enable.h
611 fsck.o: $(srcdir)/fsck.c $(top_srcdir)/version.h $(srcdir)/nls-enable.h \
612 $(srcdir)/fsck.h
613 util.o: $(srcdir)/util.c $(top_srcdir)/lib/et/com_err.h \
614 $(top_srcdir)/lib/e2p/e2p.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
615 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
616 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
617 $(top_builddir)/lib/ext2fs/ext2_err.h \
618 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
619 $(srcdir)/nls-enable.h $(srcdir)/util.h
620 uuidgen.o: $(srcdir)/uuidgen.c $(srcdir)/nls-enable.h
621 blkid.o: $(srcdir)/blkid.c $(top_srcdir)/lib/ext2fs/ext2fs.h \
622 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
623 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
624 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
625 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h
626 logsave.o: $(srcdir)/logsave.c
627 filefrag.o: $(srcdir)/filefrag.c $(top_builddir)/lib/ext2fs/ext2_types.h \
628 $(top_srcdir)/lib/ext2fs/fiemap.h
629 base_device.o: $(srcdir)/base_device.c $(srcdir)/fsck.h
630 ismounted.o: $(srcdir)/ismounted.c $(srcdir)/fsck.h \
631 $(top_srcdir)/lib/et/com_err.h
632 profile.o: $(srcdir)/../e2fsck/profile.c $(top_srcdir)/lib/et/com_err.h \
633 $(srcdir)/../e2fsck/profile.h prof_err.h
634 e2undo.o: $(srcdir)/e2undo.c $(top_srcdir)/lib/ext2fs/tdb.h \
635 $(top_srcdir)/lib/ext2fs/ext2fs.h $(top_builddir)/lib/ext2fs/ext2_types.h \
636 $(top_srcdir)/lib/ext2fs/ext2_fs.h $(top_srcdir)/lib/ext2fs/ext3_extents.h \
637 $(top_srcdir)/lib/et/com_err.h $(top_srcdir)/lib/ext2fs/ext2_io.h \
638 $(top_builddir)/lib/ext2fs/ext2_err.h \
639 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
640 $(srcdir)/nls-enable.h
641 e2freefrag.o: $(srcdir)/e2freefrag.c $(top_srcdir)/lib/ext2fs/ext2_fs.h \
642 $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
643 $(top_srcdir)/lib/ext2fs/ext3_extents.h $(top_srcdir)/lib/et/com_err.h \
644 $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
645 $(top_srcdir)/lib/ext2fs/ext2_ext_attr.h $(top_srcdir)/lib/ext2fs/bitops.h \
646 $(srcdir)/e2freefrag.h