From 20da00318d20904a275b0baa44ea430555bc8e91 Mon Sep 17 00:00:00 2001 From: Goldwyn Rodrigues Date: Wed, 21 Jan 2009 13:22:49 -0500 Subject: [PATCH] Modify Makefile to include man directory --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 73a875b7..e6a332c9 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ endif $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $< -all: version $(progs) +all: version $(progs) manpages version: bash version.sh @@ -68,10 +68,17 @@ quick-test: $(objects) quick-test.o convert: $(objects) convert.o gcc $(CFLAGS) -o btrfs-convert $(objects) convert.o -lext2fs $(LDFLAGS) $(LIBS) +manpages: + cd man; make + +install-man: + cd man; make install + clean : rm -f $(progs) cscope.out *.o .*.d btrfs-convert + cd man; make clean -install: $(progs) +install: $(progs) install-man $(INSTALL) -m755 -d $(DESTDIR)$(bindir) $(INSTALL) $(progs) $(DESTDIR)$(bindir) if [ -e btrfs-convert ]; then $(INSTALL) btrfs-convert $(DESTDIR)$(bindir); fi