diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-04-16 20:28:31 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-04-16 20:28:31 +0200 |
commit | 56b7b997cdb2f28b12c09a132d9f2fecbf5bff3d (patch) | |
tree | f78cc9d61c4ea2c43ee2c69c8ea2193c6628e4d6 /Makefile | |
parent | add manpages for the bus command (diff) | |
download | bus-56b7b997cdb2f28b12c09a132d9f2fecbf5bff3d.tar.gz bus-56b7b997cdb2f28b12c09a132d9f2fecbf5bff3d.tar.bz2 bus-56b7b997cdb2f28b12c09a132d9f2fecbf5bff3d.tar.xz |
makefile: add man1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 26 insertions, 2 deletions
@@ -6,11 +6,35 @@ FLAGS = -std=c99 -Wall -Wextra -pedantic -O2 LIB_MAJOR = 1 LIB_MINOR = 0 LIB_VERSION = ${LIB_MAJOR}.${LIB_MINOR} +VERSION = 1.0 -all: bus +all: bus doc +doc: man +man: man1 bus: bin/bus bin/libbus.so.$(LIB_VERSION) bin/libbus.so.$(LIB_MAJOR) bin/libbus.so bin/libbus.a +man1: bin/bus.1 bin/bus-broadcast.1 bin/bus-create.1 bin/bus-listen.1 bin/bus-remove.1 bin/bus-wait.1 + +bin/%.1: doc/%.1 + @echo SED $@ + @mkdir -p bin + @sed 's/%VERSION%/${VERSION}/g' < $< > $@ + +bin/%.3: doc/%.3 + @echo SED $@ + @mkdir -p bin + @sed 's/%VERSION%/${VERSION}/g' < $< > $@ + +bin/%.5: doc/%.5 + @echo SED $@ + @mkdir -p bin + @sed 's/%VERSION%/${VERSION}/g' < $< > $@ + +bin/%.7: doc/%.7 + @echo SED $@ + @mkdir -p bin + @sed 's/%VERSION%/${VERSION}/g' < $< > $@ bin/libbus.a: obj/bus-fpic.o @echo AR $@ @@ -51,5 +75,5 @@ clean: @echo cleaning @-rm -rf obj bin -.PHONY: all bus clean install uninstall +.PHONY: all doc bus man man1 clean install uninstall |