aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-16 20:28:31 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-16 20:28:31 +0200
commit56b7b997cdb2f28b12c09a132d9f2fecbf5bff3d (patch)
treef78cc9d61c4ea2c43ee2c69c8ea2193c6628e4d6 /Makefile
parentadd manpages for the bus command (diff)
downloadbus-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--Makefile28
1 files changed, 26 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cc31abe..ccb2251 100644
--- a/Makefile
+++ b/Makefile
@@ -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