summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Grimm <tobias@e-tobi.loc>2009-02-15 21:15:49 +0100
committerTobias Grimm <tobias@e-tobi.loc>2009-02-15 21:15:49 +0100
commitb869fa2e2d4a2537d95787405c3654caf2c2d84d (patch)
treee45409678e62e5c91b7fdc8644e4220290cbd6a0 /Makefile
parent2bae6457006474655f971891a92341b1ae34840e (diff)
downloadvdr-plugin-scripting-b869fa2e2d4a2537d95787405c3654caf2c2d84d.tar.gz
vdr-plugin-scripting-b869fa2e2d4a2537d95787405c3654caf2c2d84d.tar.bz2
- Added RDoc documentation (Closes: #90)HEADmaster
- Added on_keypress event to menu (Closes: #96)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e23ba48..474405f 100644
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,11 @@ OBJS := $(addsuffix .o,$(basename ${SRCS}))
OBJS += $(addsuffix _wrap.o,$(basename ${INTERFACES}))
+### RDoc
+
+RDOC ?= /usr/bin/rdoc
+RDOC_INPUT := $(shell find lib -name "*")
+
### Implicit rules:
.PRECIOUS: %_wrap.cc
@@ -125,7 +130,7 @@ i18n: $(I18Nmsgs)
### Targets:
-all: libvdr-$(PLUGIN).so i18n
+all: libvdr-$(PLUGIN).so i18n rdoc
test:
spec -c -fs .
@@ -134,6 +139,12 @@ libvdr-$(PLUGIN).so: $(OBJS)
$(CXX) $(CXXFLAGS) -shared $(OBJS) -L. $(LIBS) -o $@
@cp $@ $(LIBDIR)/$@.$(APIVERSION)
+.rdoc: $(RDOC_INPUT)
+ $(RDOC) --main lib/README -S -U lib/README -o rdoc $<
+ @touch .rdoc
+
+rdoc: .rdoc
+
dist: test clean
@-rm -rf $(TMPDIR)/$(ARCHIVE)
@mkdir $(TMPDIR)/$(ARCHIVE)
@@ -147,4 +158,5 @@ dist: test clean
clean:
@-rm -f $(BUILD_DEPFILE) *.so* *.tar.gz core* *~
@-rm -f swig/*_wrap.* swigrubyrun.h
+ @-rm -rf rdoc .rdoc
@-find . -name \*.\o -exec rm -f {} \;