Skip to content

Commit

Permalink
Move templates out of lambda folder
Browse files Browse the repository at this point in the history
  • Loading branch information
reweeden committed Mar 3, 2023
1 parent 2e27d0f commit a532520
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ SOURCES := \
lambda/tea_bumper.py \
lambda/update_lambda.py

HTML_TEMPLATES := $(wildcard lambda/templates/*.html)
MD_TEMPLATES := $(wildcard lambda/templates/*.md)
HTML_TEMPLATES := $(wildcard templates/*.html)
MD_TEMPLATES := $(wildcard templates/*.md)
TERRAFORM := $(wildcard terraform/*)

REQUIREMENTS_IN := $(wildcard requirements/*.in)
Expand All @@ -16,8 +16,8 @@ DIR := dist
EMPTY := $(DIR)/empty
# Temporary artifacts
DIST_SOURCES := $(SOURCES:lambda/%=$(DIR)/code/%)
DIST_MD_RESOURCES := $(MD_TEMPLATES:lambda/%.md=$(DIR)/code/%.html)
DIST_HTML_RESOURCES := $(HTML_TEMPLATES:lambda/%=$(DIR)/code/%)
DIST_MD_RESOURCES := $(MD_TEMPLATES:%.md=$(DIR)/code/%.html)
DIST_HTML_RESOURCES := $(HTML_TEMPLATES:%=$(DIR)/code/%)
DIST_RESOURCES := $(DIST_HTML_RESOURCES) $(DIST_MD_RESOURCES)
DIST_TERRAFORM := $(TERRAFORM:terraform/%=$(DIR)/terraform/%)

Expand Down Expand Up @@ -109,12 +109,12 @@ $(DIR)/thin-egress-app-dependencies.zip: requirements/requirements.txt $(REQUIRE
$(DOCKER_LAMBDA_CI) build/dependency_builder.sh "$(DIR)/thin-egress-app-dependencies.zip" "$(DIR)"

.SECONDARY: $(DIST_MD_RESOURCES)
$(DIST_MD_RESOURCES): $(DIR)/code/%.html: lambda/%.md $(BUILD_VENV)
$(DIST_MD_RESOURCES): $(DIR)/code/%.html: %.md $(BUILD_VENV)
@mkdir -p $(@D)
$(BUILD_VENV)/bin/python scripts/render_md.py $< --output $@

.SECONDARY: $(DIST_RESOURCES)
$(DIST_HTML_RESOURCES): $(DIR)/code/%: lambda/%
$(DIST_HTML_RESOURCES): $(DIR)/code/%: %
@mkdir -p $(@D)
cp $< $@

Expand Down
1 change: 0 additions & 1 deletion lambda/templates/s3access.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions templates/s3access.md
File renamed without changes.

0 comments on commit a532520

Please sign in to comment.