docs: Add initial manpages

Mostly generated from help2man output.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Jeremy Kerr 2012-05-23 13:35:32 +08:00
parent fcf3cdf70a
commit 42c7160576
3 changed files with 17 additions and 2 deletions

View file

@ -10,6 +10,7 @@ sbsign_objs = sbsign.o idc.o image.o
sbverify_objs = sbverify.o idc.o image.o sbverify_objs = sbverify.o idc.o image.o
libs = -lbfd -lcrypto libs = -lbfd -lcrypto
objs = $(sort $(sbsign_objs) $(sbverify_objs)) objs = $(sort $(sbsign_objs) $(sbverify_objs))
docs = docs/sbsign.1 docs/sbverify.1
# ccan build configuration # ccan build configuration
ccan_dir = lib/ccan ccan_dir = lib/ccan
@ -23,8 +24,10 @@ ccan_config = $(ccan_dir)/config.h
DESTDIR ?= DESTDIR ?=
prefix ?= /usr prefix ?= /usr
bindir ?= ${prefix}/bin bindir ?= ${prefix}/bin
install_dirs = install -m 755 -d $(DESTDIR)$(bindir) man1dir = ${prefix}/share/man/man1/
install_dirs = install -m 755 -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
install_bin = install -m 755 -t $(DESTDIR)$(bindir) install_bin = install -m 755 -t $(DESTDIR)$(bindir)
install_man1 = install -m 755 -t $(DESTDIR)$(man1dir)
# dist # dist
package = sbsigntool package = sbsigntool
@ -55,12 +58,20 @@ $(ccan_objs): $(ccan_stamp)
$(ccan_config): $(ccan_stamp) $(ccan_config): $(ccan_stamp)
cd $(@D) && $(MAKE) config.h cd $(@D) && $(MAKE) config.h
# doc build
docs: $(docs)
.PHONY: docs
$(docs): docs/%.1: docs/%.1.in %
help2man --no-info -i $< -o $@ $(patsubst %.1, ./%, $(@F))
# built objects may require headers from ccan # built objects may require headers from ccan
$(objs): $(ccan_stamp) $(ccan_config) $(objs): $(ccan_stamp) $(ccan_config)
install: $(tools) install: $(tools) $(docs)
$(install_dirs) $(install_dirs)
$(install_bin) $(tools) $(install_bin) $(tools)
$(install_man1) $(docs)
.PHONY: install .PHONY: install
clean: clean:

2
docs/sbsign.1.in Normal file
View file

@ -0,0 +1,2 @@
[name]
sbsign - UEFI secure boot signing tool

2
docs/sbverify.1.in Normal file
View file

@ -0,0 +1,2 @@
[name]
sbverify - UEFI secure boot verification tool