Skip to content
Permalink
Browse files

Makefile: Allow overriding args to bikeshed spec

  • Loading branch information...
kba committed Oct 27, 2016
1 parent a09fe41 commit c5aa772279130bb735f38bef238d637d0bba79ef
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile
@@ -9,6 +9,7 @@ SPEC_HTML = $(VERSION)/index.html

BIKESHED = $(shell for cmd in bikeshed docker;do type >/dev/null 2>&1 $$cmd && echo $$cmd && break;done)
BIKESHED_ARGS = -f
BIKESHED_SPEC_ARGS =

SPEC_DEFS = $(VERSION)/include/defs/bbox
SPEC_DEFS_YML = $(VERSION)/defs.yml
@@ -17,8 +18,8 @@ GEN_DEFS = python3 gen-defs.py

$(SPEC_HTML): $(SPEC_BS)
@case "$(BIKESHED)" in \
bikeshed) bikeshed $(BIKESHED_ARGS) spec $(SPEC_BS) ;; \
docker) docker run --rm -it -v $(PWD):/data kbai/bikeshed $(BIKESHED_ARGS) spec $(SPEC_BS) ;; \
bikeshed) bikeshed $(BIKESHED_ARGS) spec $(BIKESHED_SPEC_ARGS) $(SPEC_BS) ;; \
docker) docker run --rm -it -v $(PWD):/data kbai/bikeshed $(BIKESHED_ARGS) spec $(BIKESHED_SPEC_ARGS) $(SPEC_BS) ;; \
*) echo 'Unsupported bikeshed backend "$(BIKESHED)"'; exit 1 ;; esac
@rm -f $(SPEC_BS)

0 comments on commit c5aa772

Please sign in to comment.
You can’t perform that action at this time.