From 939f45bb27e34403aee9af5aada1f2777e26b756 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 21 Jan 2020 14:44:26 -0800 Subject: [PATCH] build the symlink when needed.. --- .gitignore | 1 + Makefile | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ccea443..91160fd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ p .coverage root/js/solardash.file.js root/js/solardash.https.js +root/js/solardash.http.js diff --git a/Makefile b/Makefile index f8de34e..0902c15 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ VRITUALENVARGS = FILES=$(PROJNAME)/__init__.py -JSFILES = root/js/solardash.file.js root/js/solardash.https.js +JSFILES = root/js/solardash.file.js root/js/solardash.https.js root/js/solardash.http.js THIRDPARTYJS = root/js/jquery.js root/js/highstock.js @@ -20,6 +20,9 @@ root/js/highstock.js: Makefile root/js/highcharts.js: Makefile wget -O - "https://code.highcharts.com/stock/8.0.0/highcharts.js" | grep -v '^//# sourceMappingURL=' > $@ || (rm "$@"; false) +root/js/solardash.http.js: root/js/solardash.https.js + ln -s solardash.https.js $@ + # manual deps root/js/solardash.base.js: $(THIRDPARTYJS) root/js/solardash.file.js: root/js/solardash.base.js