e2fsprogs/ext2ed/Makefile.in

78 lines
1.7 KiB
Makefile

#
# Standard e2fsprogs prologue....
#
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
top_builddir = ..
my_dir = ext2ed
INSTALL = @INSTALL@
@MCONFIG@
PROGS= ext2ed
MANPAGES= ext2ed.8
DOC_DIR = $datadir/doc/ext2ed
XTRA_CFLAGS = $(FLAGS) -DETC_DIR=\"$(root_sysconfdir)\" -I/usr/include/readline
LIBS = -lreadline -lncurses
OBJS= main.o init.o general_com.o inode_com.o dir_com.o super_com.o \
disk.o win.o group_com.o file_com.o blockbitmap_com.o ext2_com.o \
inodebitmap_com.o
DOCS= doc/ext2ed-design.pdf doc/user-guide.pdf doc/ext2fs-overview.pdf \
doc/ext2ed-design.html doc/user-guide.html doc/ext2fs-overview.html
.c.o:
$(CC) -c $(ALL_CFLAGS) $< -o $@
.SUFFIXES: .sgml .ps .pdf .html
.sgml.ps:
mkdir -p doc
sgmltools -b ps $<
-mv `echo $< | sed -e 's/.sgml$$/.ps/'` $@
.sgml.pdf:
mkdir -p doc
sgmltools -b pdf $<
-mv `echo $< | sed -e 's/.sgml$$/.pdf/'` $@
.sgml.html:
mkdir -p doc
sgmltools -b onehtml $<
-mv `echo $< | sed -e 's/.sgml$$/.html/'` $@
all:: $(PROGS) $(MANPAGES) ext2ed.conf
docs: $(DOCS)
ext2ed: $(OBJS)
$(CC) $(ALL_LDFLAGS) -o ext2ed $(OBJS) $(LIBS)
ext2ed.8: $(DEP_SUBSTITUTE) $(srcdir)/ext2ed.8.in
$(SUBSTITUTE) $(srcdir)/ext2ed.8.in ext2ed.8
ext2ed.conf: $(DEP_SUBSTITUTE) $(srcdir)/ext2ed.conf.in
$(SUBSTITUTE) $(srcdir)/ext2ed.conf.in ext2ed.conf
clean:
$(RM) -f ext2ed $(OBJS) $(DOCS) ext2ed.conf ext2ed.8
-rmdir doc
install: ext2ed
install -d $(root_sysconfdir)
install -m 755 ext2ed $(sbindir)
install -m 644 $(srcdir)/ext2.descriptors $(datadir)
install -m 644 ext2ed.conf $(root_sysconfdir)
install -m 644 ext2ed.8 $(man8dir)
# +++ Dependency line eater +++
#
# Makefile dependencies follow. This must be the last section in
# the Makefile.in file
#