- fix docgen bug that would generate docs for 'base' plugin classes

(should skip, now does)
This commit is contained in:
Jordan Sissel 2011-09-02 11:42:14 -07:00
parent 4135673e8a
commit 9e6612f750

View file

@ -7,7 +7,7 @@ ELASTICSEARCH_VERSION=0.17.6
ELASTICSEARCH_URL=http://github.com/downloads/elasticsearch/elasticsearch ELASTICSEARCH_URL=http://github.com/downloads/elasticsearch/elasticsearch
ELASTICSEARCH=vendor/jar/elasticsearch-$(ELASTICSEARCH_VERSION) ELASTICSEARCH=vendor/jar/elasticsearch-$(ELASTICSEARCH_VERSION)
PLUGIN_FILES=$(shell git ls-files | egrep '^lib/logstash/(inputs|outputs|filters)/') PLUGIN_FILES=$(shell git ls-files | egrep '^lib/logstash/(inputs|outputs|filters)/' | egrep -v '/base.rb$$')
default: compile default: compile
@ -122,20 +122,17 @@ test:
ruby bin/logstash test ruby bin/logstash test
.PHONY: docs .PHONY: docs
docs: OUTPUT=build/docs
docs: docgen doccopy docindex docs: docgen doccopy docindex
build/docs: doccopy: $(addprefix build/,$(shell git ls-files | grep '^docs/')) | build/docs
-mkdir -p $@
doccopy: $(addprefix build/,$(shell git ls-files | grep '^docs/')) | $(OUTPUT)
docindex: build/docs/index.html docindex: build/docs/index.html
docgen: $(addprefix build/docs/,$(subst lib/logstash/,,$(subst .rb,.html,$(PLUGIN_FILES)))) docgen: $(addprefix build/docs/,$(subst lib/logstash/,,$(subst .rb,.html,$(PLUGIN_FILES))))
build/docs: build build/docs: build
-mkdir $@ -mkdir $@
build/docs/inputs build/docs/filters build/docs/outputs: build/docs
build/docs/inputs build/docs/filters build/docs/outputs: | build/docs
-mkdir $@ -mkdir $@
build/docs/inputs/%.html: lib/logstash/inputs/%.rb | build/docs/inputs build/docs/inputs/%.html: lib/logstash/inputs/%.rb | build/docs/inputs