Skip to contentSkip to conversation

Modify Makefile to include man directory

PATCH In review Goldwyn Rodrigues 1 participant 1 message Jan 13, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/4 Modify Makefile to include man directory

---
 Makefile |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
Makefile +9 -2
index 3349079..8f21c27 100644
@@ -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
Signature · 5 lines
1.6.0.2


-- 
Goldwyn