btrfs-progs: Update the makefile for generating the help messages.
Subsystems (2)
PATCH v2 3/7 btrfs-progs: Update the makefile for generating the help messages.
Update the makefile for generating the help messages.
Signed off by: Goffredo Baroncelli <[email protected]>
--- Makefile | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-)
Makefile +15 -1
@@ -38,8 +38,9 @@ all: version $(progs) manpages version: bash version.sh -btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o +btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o helpmsg.o $(CC) -lpthread $(CFLAGS) -o btrfs btrfs.o btrfs_cmds.o scrub.o \ + helpmsg.o \ $(objects) $(LDFLAGS) $(LIBS) calc-size: $(objects) calc-size.o
@@ -108,6 +109,19 @@ man/btrfs.8.in: helpextract $(btrfs_man_page_source) manpages: man/btrfs.8.in cd man; make +helpmsg.c: helpextract $(btrfs_man_page_source) + echo >$@ "/*" + echo >>$@ " * this file contains the help messages. It is " + echo >>$@ " * automatically generated. do not edit ! " + echo >>$@ " */" + echo >>$@ + echo >>$@ "#define NULL 0" + echo >>$@ + + echo -n "char * help_messages[] = " >>$@ + ./helpextract --c-array $(btrfs_man_page_source) >>$@ + echo >>$@ ";" + install-man: cd man; make install
@@ -115,6 +129,7 @@ clean : rm -f man/btrfs.8.in rm -f $(progs) cscope.out *.o .*.d btrfs-convert btrfs-image btrfs-select-
super \
btrfs-zero-log btrfstune dir-test ioctl-test quick-test version.h
+ rm -f helpmsg.c
cd man; make clean
install: $(progs) install-man
Signature · 5 lines
1.7.7.2 -- gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <[email protected]> Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512
Makefile +16 -1
@@ -38,8 +38,9 @@ all: version $(progs) manpages version: bash version.sh -btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o +btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o helpmsg.o $(CC) -lpthread $(CFLAGS) -o btrfs btrfs.o btrfs_cmds.o scrub.o \ + helpmsg.o \ $(objects) $(LDFLAGS) $(LIBS) calc-size: $(objects) calc-size.o
@@ -108,6 +109,19 @@ man/btrfs.8.in: helpextract $(btrfs_man_page_source) manpages: man/btrfs.8.in cd man; make +helpmsg.c: helpextract $(btrfs_man_page_source) + echo >$@ "/*" + echo >>$@ " * this file contains the help messages. It is " + echo >>$@ " * automatically generated. do not edit ! " + echo >>$@ " */" + echo >>$@ + echo >>$@ "#define NULL 0" + echo >>$@ + + echo -n "char * help_messages[] = " >>$@ + ./helpextract --c-array $(btrfs_man_page_source) >>$@ + echo >>$@ ";" + install-man: cd man; make install
@@ -115,6 +129,7 @@ clean : rm -f man/btrfs.8.in rm -f $(progs) cscope.out *.o .*.d btrfs-convert btrfs-image btrfs-select-super \ btrfs-zero-log btrfstune dir-test ioctl-test quick-test version.h + rm -f helpmsg.c cd man; make clean install: $(progs) install-man
Signature · 1 line
1.7.7.2