Skip to content

Commit

Permalink
Approximated dependencies between template files in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
viklund committed May 28, 2018
1 parent 6c61ae8 commit 4db2ed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ static/js/app.js: $(JAVASCRIPT_FILES)
mkdir -p $$( dirname $@ )
cat $^ >$@

static/templates/ng-templates/browser%.html: frontend/templates/ng-templates/browser%.html $(wildcard frontend/templates/ng-templates/*.jj2)
mkdir -p $$( dirname $@ ) 2>/dev/null || true
python3 scripts/compile_template.py ${COMPILE_TEMPLATE_OPTS} -b frontend/templates -s $< >$@

static/templates/%.html: frontend/templates/%.html frontend/templates/ng-templates/dataset-base.jj2
mkdir -p $$( dirname $@ ) 2>/dev/null || true
python3 scripts/compile_template.py ${COMPILE_TEMPLATE_OPTS} -b frontend/templates -s $< >$@
2 changes: 1 addition & 1 deletion scripts/watch_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main():
for c in changes:
(_, type_names, path, filename) = c
logging.info(" PATH=[{}] FILENAME=[{}] EVENT_TYPES={}".format(path, filename, type_names))
subprocess.call(['make', '-B'])
subprocess.call(['make'])


if __name__ == '__main__':
Expand Down

0 comments on commit 4db2ed6

Please sign in to comment.