Whamcloud - gitweb
Fix parallel (make -j) build
[tools/e2fsprogs.git] / ext2ed / 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 = ext2ed
10 INSTALL = @INSTALL@
11
12 @MCONFIG@
13
14 PROGS=          ext2ed
15 MANPAGES=       ext2ed.8
16
17 DOC_DIR         =       $datadir/doc/ext2ed
18
19 LIBS            =       -lncurses $(LIBEXT2FS)
20
21 SRCS=   $(srcdir)/main.c $(srcdir)/init.c $(srcdir)/general_com.c       \
22         $(srcdir)/inode_com.c $(srcdir)/dir_com.c $(srcdir)/super_com.c \
23         $(srcdir)/disk.c $(srcdir)/win.c $(srcdir)/group_com.c          \
24         $(srcdir)/file_com.c $(srcdir)/blockbitmap_com.c                \
25         $(srcdir)/ext2_com.c $(srcdir)/inodebitmap_com.c
26
27 OBJS=   main.o init.o general_com.o inode_com.o dir_com.o super_com.o    \
28         disk.o win.o group_com.o file_com.o blockbitmap_com.o ext2_com.o \
29         inodebitmap_com.o
30
31 DOCS=   doc/ext2ed-design.pdf doc/user-guide.pdf doc/ext2fs-overview.pdf \
32         doc/ext2ed-design.html doc/user-guide.html doc/ext2fs-overview.html
33
34 .c.o:
35         $(CC) -c $(ALL_CFLAGS) $< -o $@
36
37 .SUFFIXES: .sgml .ps .pdf .html
38
39 .sgml.ps:
40         mkdir -p doc
41         sgmltools -b ps $< 
42         -mv `echo $< | sed -e 's/.sgml$$/.ps/'` $@
43
44 .sgml.pdf:
45         mkdir -p doc
46         sgmltools -b pdf $< 
47         -mv `echo $< | sed -e 's/.sgml$$/.pdf/'` $@
48
49 .sgml.html:
50         mkdir -p doc
51         sgmltools -b onehtml $< 
52         -mv `echo $< | sed -e 's/.sgml$$/.html/'` $@
53
54 all:: $(PROGS) $(MANPAGES) ext2ed.conf 
55
56 docs: $(DOCS)
57
58 ext2ed: $(OBJS)
59         $(CC) $(ALL_LDFLAGS) -o ext2ed $(OBJS) $(LIBS)
60
61 ext2ed.8: $(DEP_SUBSTITUTE) $(srcdir)/ext2ed.8.in
62         $(SUBSTITUTE_UPTIME) $(srcdir)/ext2ed.8.in ext2ed.8
63
64 ext2ed.conf: $(DEP_SUBSTITUTE) $(srcdir)/ext2ed.conf.in
65         $(SUBSTITUTE_UPTIME) $(srcdir)/ext2ed.conf.in ext2ed.conf
66
67 clean:
68         $(RM) -f ext2ed $(OBJS) $(DOCS) ext2ed.conf ext2ed.8
69         -rmdir doc
70
71 install: ext2ed
72         install -d $(root_sysconfdir)
73         install -m 755 ext2ed $(sbindir)
74         install -m 644 $(srcdir)/ext2.descriptors $(datadir)
75         install -m 644 ext2ed.conf $(root_sysconfdir)
76         install -m 644 ext2ed.8 $(man8dir)
77
78 # +++ Dependency line eater +++
79
80 # Makefile dependencies follow.  This must be the last section in
81 # the Makefile.in file
82 #
83 main.o: $(srcdir)/main.c $(srcdir)/ext2ed.h
84 general_com.o: $(srcdir)/general_com.c $(srcdir)/ext2ed.h
85 inode_com.o: $(srcdir)/inode_com.c $(srcdir)/ext2ed.h
86 dir_com.o: $(srcdir)/dir_com.c $(srcdir)/ext2ed.h
87 super_com.o: $(srcdir)/super_com.c $(srcdir)/ext2ed.h
88 disk.o: $(srcdir)/disk.c $(srcdir)/ext2ed.h
89 win.o: $(srcdir)/win.c $(srcdir)/ext2ed.h
90 group_com.o: $(srcdir)/group_com.c $(srcdir)/ext2ed.h
91 file_com.o: $(srcdir)/file_com.c $(srcdir)/ext2ed.h
92 blockbitmap_com.o: $(srcdir)/blockbitmap_com.c $(srcdir)/ext2ed.h
93 ext2_com.o: $(srcdir)/ext2_com.c $(srcdir)/ext2ed.h
94 inodebitmap_com.o: $(srcdir)/inodebitmap_com.c $(srcdir)/ext2ed.h