Skip to content

Commit

Permalink
Remove version argument for make docs
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Oct 29, 2019
1 parent c809501 commit e781fc4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ debug ?= ## Add symbolic debug info
verbose ?= ## Run specs in verbose mode
junit_output ?= ## Directory to output junit results
static ?= ## Enable static linking
version := master ## Specify version for docs generator

O := .build
SOURCES := $(shell find src -name '*.cr')
Expand Down Expand Up @@ -65,12 +64,6 @@ DEPS = $(LLVM_EXT_OBJ) $(LIB_CRYSTAL_TARGET)
CFLAGS += -fPIC $(if $(debug),-g -O0)
CXXFLAGS += $(if $(debug),-g -O0)

ifeq ($(version),master)
DOCS_OPTIONS := --sitemap-base-url=https://crystal-lang.org/api/master --sitemap-changefreq=daily --sitemap-priority=0.3
else
DOCS_OPTIONS := --sitemap-base-url=https://crystal-lang.org/api/$(version) --sitemap-changefreq=never --sitemap-priority=1.0
endif

ifeq (${LLVM_CONFIG},)
$(error Could not locate llvm-config, make sure it is installed and in your PATH, or set LLVM_CONFIG)
else
Expand Down

0 comments on commit e781fc4

Please sign in to comment.