Modify Makefile to include man directory
This commit is contained in:
parent
fc5a740b1c
commit
20da00318d
11
Makefile
11
Makefile
|
@ -30,7 +30,7 @@ endif
|
||||||
$(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
|
$(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
|
||||||
|
|
||||||
|
|
||||||
all: version $(progs)
|
all: version $(progs) manpages
|
||||||
|
|
||||||
version:
|
version:
|
||||||
bash version.sh
|
bash version.sh
|
||||||
|
@ -68,10 +68,17 @@ quick-test: $(objects) quick-test.o
|
||||||
convert: $(objects) convert.o
|
convert: $(objects) convert.o
|
||||||
gcc $(CFLAGS) -o btrfs-convert $(objects) convert.o -lext2fs $(LDFLAGS) $(LIBS)
|
gcc $(CFLAGS) -o btrfs-convert $(objects) convert.o -lext2fs $(LDFLAGS) $(LIBS)
|
||||||
|
|
||||||
|
manpages:
|
||||||
|
cd man; make
|
||||||
|
|
||||||
|
install-man:
|
||||||
|
cd man; make install
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -f $(progs) cscope.out *.o .*.d btrfs-convert
|
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) -m755 -d $(DESTDIR)$(bindir)
|
||||||
$(INSTALL) $(progs) $(DESTDIR)$(bindir)
|
$(INSTALL) $(progs) $(DESTDIR)$(bindir)
|
||||||
if [ -e btrfs-convert ]; then $(INSTALL) btrfs-convert $(DESTDIR)$(bindir); fi
|
if [ -e btrfs-convert ]; then $(INSTALL) btrfs-convert $(DESTDIR)$(bindir); fi
|
||||||
|
|
Loading…
Reference in New Issue