Unverified Commit a3338dd1 authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

Simplify CI job setup per language

parent b696d2d7
......@@ -29,12 +29,12 @@ stats:
paths:
- '*.pdf'
script:
- make $CI_JOB_NAME
course_en:
- make course
course:en:
extends: .course
variables:
LANGUAGE: en
course_tr:
course:tr:
extends: .course
variables:
LANGUAGE: tr
......@@ -49,12 +49,12 @@ course_tr:
paths:
- '*.pdf'
script:
- make $CI_JOB_NAME
book_en:
- make book
book:en:
extends: .book
variables:
LANGUAGE: en
book_tr:
book:tr:
extends: .book
variables:
LANGUAGE: tr
THISBOOK = book_$(LANGUAGE)
all: $(THISBOOK)
.PHONY: $(THISBOOK)
$(THISBOOK): $(BOOKBASE)
all: book
.PHONY: book
book: $(BOOKBASE)
# CaSILE doesn't expect to have to generate this by defaulat
$(BOOKBASE)-manifest.yml: $(BOOKBASE).yml
......
THISCOURSE = course_$(LANGUAGE)
# Describe IIIM/BTS CCM courses in a way we can iterate over in make
LESSONS := $(subst $(_lesson)-,,$(basename $(notdir $(wildcard $(LANGUAGE)/$(_lesson)-[0-9]*.md))))
all: $(THISCOURSE)
all: course
FILTEREDLESSONS = $(call pattern_list,$(_lesson),$(LESSONS),$(call localize,$(LESSONFILTERS)),.md)
.PHONY: $(THISCOURSE)
$(THISCOURSE): $(FILTEREDLESSONS)
.PHONY: course
course: $(FILTEREDLESSONS)
$(FILTEREDLESSONS): %.md: $(LANGUAGE)/$(_lesson)-$$(call parse_lesson,$$@).md $(CCMTOOLKITDIR)/filter-$$(call parse_lessonfilter,$$@).lua $(CCMTOOLKITDIR)/filters-common.lua
$(PANDOC) $(PANDOCARGS) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment