diff --git a/templates/Makefile b/templates/Makefile index 9dfce2e..21ae714 100644 --- a/templates/Makefile +++ b/templates/Makefile @@ -5,7 +5,7 @@ DEVEL_BUILD_DIR = $(BUILD_DIR)/devel PROD_BUILD_DIR = $(BUILD_DIR)/prod TEMPLATES_SRC_DIR = . -TEMPLATES_SRC_FILES = $(wildcard $(TEMPLATES_SRC_DIR)/*.tmpl) +TEMPLATES_SRC_FILES = $(wildcard $(TEMPLATES_SRC_DIR)/*.html) TEMPLATES_DEVEL_BUILD_DIR = $(DEVEL_BUILD_DIR)/templates TEMPLATES_DEVEL_BUILD_FILES = $(patsubst $(TEMPLATES_SRC_DIR)/%, $(TEMPLATES_DEVEL_BUILD_DIR)/%, $(TEMPLATES_SRC_FILES)) TEMPLATES_PROD_BUILD_DIR = $(PROD_BUILD_DIR)/templates @@ -20,12 +20,12 @@ clean: devel-templates: $(TEMPLATES_DEVEL_BUILD_FILES) -$(TEMPLATES_DEVEL_BUILD_FILES): $(TEMPLATES_DEVEL_BUILD_DIR)/%.tmpl: $(TEMPLATES_SRC_DIR)/%.tmpl +$(TEMPLATES_DEVEL_BUILD_FILES): $(TEMPLATES_DEVEL_BUILD_DIR)/%.html: $(TEMPLATES_SRC_DIR)/%.html cp $^ $@; prod-templates: $(TEMPLATES_PROD_BUILD_FILES) -$(TEMPLATES_PROD_BUILD_FILES): $(TEMPLATES_PROD_BUILD_DIR)/%.tmpl: $(TEMPLATES_SRC_DIR)/%.tmpl +$(TEMPLATES_PROD_BUILD_FILES): $(TEMPLATES_PROD_BUILD_DIR)/%.html: $(TEMPLATES_SRC_DIR)/%.html cp $^ $@; $(shell mkdir -p $(TEMPLATES_DEVEL_BUILD_DIR) $(TEMPLATES_PROD_BUILD_DIR))