Modify Makefile to include man directory
authorGoldwyn Rodrigues <rgoldwyn@gmail.com>
Wed, 21 Jan 2009 18:22:49 +0000 (13:22 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 21 Jan 2009 18:22:49 +0000 (13:22 -0500)
Makefile

index 73a875b..e6a332c 100644 (file)
--- 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