Commit 99ca8aba authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Add version information to manpages

parent 3bf78101
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
/src/*.o
/src/*.inc
/src/feh
/man/*.1
+8 −2
Original line number Diff line number Diff line
include config.mk

all:
all: build-src build-man

build-src:
	@${MAKE} -C src

build-man:
	@${MAKE} -C man

test: all
	@PACKAGE=${PACKAGE} VERSION=${VERSION} prove test

@@ -14,7 +19,7 @@ install: install-man install-doc install-bin install-font install-img
install-man:
	@echo installing manuals to ${man_dir}
	@mkdir -p ${man_dir}/man1
	@cp man/* ${man_dir}/man1
	@cp man/*.1 ${man_dir}/man1
	@chmod 644 ${man_dir}/man1/feh.1 ${man_dir}/man1/feh-cam.1 \
		${man_dir}/man1/gen-cam-menu.1

@@ -54,6 +59,7 @@ uninstall:

clean:
	@${MAKE} -C src clean
	@${MAKE} -C man clean

.PHONY: all test test-x11 install uninstall clean install-man install-doc \
	install-bin install-font install-img

man/Makefile

0 → 100644
+16 −0
Original line number Diff line number Diff line
include ../config.mk

SOURCES = ${shell echo *.pre}
TARGETS = ${SOURCES:.pre=.1}

all: ${TARGETS}

.pre.1:
	sed 's/\$$VERSION\$$/${VERSION}/g' < ${@:.1=.pre} > $@

clean:
	rm *.1

.SUFFIXES: .pre .1

.PHONY: clean
+3 −0
Original line number Diff line number Diff line
@@ -10,6 +10,9 @@
.Op Ar options
.Ar keys
.
.Sh VERSION
This manual documents feh-cam, shipped with feh version $VERSION$
.
.Sh DESCRIPTION
.Nm
is a perl wrapper for feh which simplifies viewing webcams using keyed
+4 −0
Original line number Diff line number Diff line
@@ -14,6 +14,10 @@
.Ar files or directories ...
.
.
.Sh VERSION
This manual documents feh $VERSION$
.
.
.Sh DESCRIPTION
.Nm
is a mode-based image viewer.  It is especially aimed at commandline users who
Loading