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

Add third mode for handling language meta repositories

parent dd93d7f1
......@@ -20,8 +20,9 @@ LODPI = 150
TRANSLATIONS := $(wildcard [a-z][a-z])
LESSONFILTERS = manuscript studyguide
CCMCOURSECODE ?= $(subst course_,,$(filter course_%,$(PROJECT)))
CCMBOOKCODE ?= $(subst book_,,$(filter book_%,$(PROJECT)))
CCMCOURSECODE ?= $(subst course_,,$(filter course_%,$(PROJECT)))
CCMLANGUAGECODE ?= $(subst _ccm,,$(filter %_ccm,$(PROJECT)))
# Help CaSILE know what's going on
SOURCES =
......@@ -40,8 +41,9 @@ debug: debug_ccmtoolkit
.PHONY: debug_ccmtoolkit
debug_ccmtoolkit:
@echo CCMCOURSECODE: $(CCMCOURSECODE)
@echo CCMBOOKCODE: $(CCMBOOKCODE)
@echo CCMCOURSECODE: $(CCMCOURSECODE)
@echo CCMLANGUAGECODE: $(CCMLANGUAGECODE)
@echo LESSONFILTERS: $(LESSONFILTERS)
@echo LESSONS: $(TRANSLATIONS)
@echo TRANSLATIONS: $(TRANSLATIONS)
......@@ -105,15 +107,23 @@ ifeq ($(IMPORT),true)
POSTCASILEINCLUDE += $(CCMTOOLKITDIR)/makefile-importmode
else # Begin export mode rules
ifneq ($(strip $(CCMCOURSECODE)),)
POSTCASILEINCLUDE += $(CCMTOOLKITDIR)/makefile-course
endif
# If this toolkit is used on a book repository...
ifneq ($(strip $(CCMBOOKCODE)),)
BOOKBASE = $(_book)_$(CCMBOOKCODE)
SOURCES += $(BOOKBASE)
POSTCASILEINCLUDE += $(CCMTOOLKITDIR)/makefile-book
endif
# If this toolkit is used on a course repository...
ifneq ($(strip $(CCMCOURSECODE)),)
POSTCASILEINCLUDE += $(CCMTOOLKITDIR)/makefile-course
endif
# If this toolkit is used on a language meta repository...
ifneq ($(strip $(CCMLANGUAGECODE)),)
POSTCASILEINCLUDE += $(CCMTOOLKITDIR)/makefile-language
endif
.ccm.lua:
cat <<- EOF > $@
CASILE.publisher = "iiim"
......
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