mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -08:00
Add 'manpages' as new target to generate manpages by help2man
* Makefile: `make manpages` generates the manpages. * Makefile: `make clean` purges the generated manpages. * .gitignore: Add generated manpages files. * README.md: Add description how to make manpages for Linux. Signed-off-by: Roger Shimizu <rosh@debian.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
d164eb0ab5
commit
0a3c1175bd
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
*.1
|
||||
*.o
|
||||
qdl
|
||||
qdl-ramdump
|
||||
|
||||
8
Makefile
8
Makefile
@@ -26,6 +26,8 @@ CHECKPATCH_SP_URL := $(CHECKPATCH_ROOT)/spelling.txt
|
||||
CHECKPATCH := ./.scripts/checkpatch.pl
|
||||
CHECKPATCH_SP := ./.scripts/spelling.txt
|
||||
|
||||
MANPAGES := ks.1 qdl-ramdump.1 qdl.1
|
||||
|
||||
default: $(QDL) $(RAMDUMP) $(KS_OUT)
|
||||
|
||||
$(QDL): $(QDL_OBJS)
|
||||
@@ -40,6 +42,11 @@ $(KS_OUT): $(KS_OBJS)
|
||||
compile_commands.json: $(QDL_SRCS) $(KS_SRCS)
|
||||
@echo -n $^ | jq -snR "[inputs|split(\" \")[]|{directory:\"$(PWD)\", command: \"$(CC) $(CFLAGS) -c \(.)\", file:.}]" > $@
|
||||
|
||||
manpages: $(KS_OUT) $(RAMDUMP) $(QDL)
|
||||
help2man -N -n "KS" -o ks.1 ./ks
|
||||
help2man -N -n "Qualcomm Download" -o qdl.1 ./qdl
|
||||
help2man -N -n "Qualcomm Download Ramdump" -o qdl-ramdump.1 ./qdl-ramdump
|
||||
|
||||
version.h::
|
||||
@echo "#define VERSION \"$(VERSION)\"" > .version.h
|
||||
@cmp -s .version.h version.h || cp .version.h version.h
|
||||
@@ -50,6 +57,7 @@ clean:
|
||||
rm -f $(QDL) $(QDL_OBJS)
|
||||
rm -f $(RAMDUMP) $(RAMDUMP_OBJS)
|
||||
rm -f $(KS_OUT) $(KS_OBJS)
|
||||
rm -f $(MANPAGES)
|
||||
rm -f compile_commands.json
|
||||
rm -f version.h .version.h
|
||||
rm -f $(CHECKPATCH)
|
||||
|
||||
Reference in New Issue
Block a user