root / templates / muncollapse / Makefile @ 12ded312
Historique | Voir | Annoter | Télécharger (2,58 ko)
| 1 |
# MunCollapsible |
|---|---|
| 2 |
# |
| 3 |
# Makefile for the MunCollapsible template. |
| 4 |
|
| 5 |
# HTTP Fetch program to use. Called as $(HTTP_FETCH) <output_file> <input_url> |
| 6 |
# |
| 7 |
# Swap the comments to use curl instead. |
| 8 |
HTTP_FETCH = wget -nv -O |
| 9 |
#HTTP_FETCH = curl -s -w "%{http_code} - %{filename_effective} - %{size_download} bytes\n" -o
|
| 10 |
|
| 11 |
|
| 12 |
# The versions of the external libraries to use. |
| 13 |
BOOTSTRAP_VERSION = 4.4.1 |
| 14 |
JQUERY_VERSION = 3.4.1.slim |
| 15 |
TYPEAHEAD_VERSION = latest |
| 16 |
|
| 17 |
FAVICON_FILES := android-chrome-144x144.png android-chrome-192x192.png android-chrome-36x36.png android-chrome-48x48.png android-chrome-72x72.png android-chrome-96x96.png apple-touch-icon-114x114.png apple-touch-icon-120x120.png apple-touch-icon-144x144.png apple-touch-icon-152x152.png apple-touch-icon-180x180.png apple-touch-icon-57x57.png apple-touch-icon-60x60.png apple-touch-icon-72x72.png apple-touch-icon-76x76.png apple-touch-icon-precomposed.png apple-touch-icon.png browserconfig.xml favicon-16x16.png favicon-194x194.png favicon-32x32.png favicon-96x96.png favicon.ico manifest.json mstile-144x144.png mstile-150x150.png mstile-310x150.png mstile-310x310.png mstile-70x70.png |
| 18 |
FAVICON_BASEURL = https://raw.githubusercontent.com/munin-monitoring/munin/master/web/static/img/favicons/ |
| 19 |
|
| 20 |
LOGO_URL = https://raw.githubusercontent.com/munin-monitoring/munin/master/web/static/img/logo-h.png |
| 21 |
|
| 22 |
BOOTSTRAP_CSS_URL = https://stackpath.bootstrapcdn.com/bootstrap/$(BOOTSTRAP_VERSION)/css/bootstrap.min.css |
| 23 |
BOOTSTRAP_JS_URL = https://stackpath.bootstrapcdn.com/bootstrap/$(BOOTSTRAP_VERSION)/js/bootstrap.bundle.min.js |
| 24 |
JQUERY_JS_URL = https://code.jquery.com/jquery-$(JQUERY_VERSION).min.js |
| 25 |
TYPEAHEAD_JS_URL = https://twitter.github.io/typeahead.js/releases/$(TYPEAHEAD_VERSION)/typeahead.bundle.js |
| 26 |
LAZYSIZES_URL = http://afarkas.github.io/lazysizes/lazysizes.min.js |
| 27 |
|
| 28 |
CWD := $(abspath $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))) |
| 29 |
|
| 30 |
|
| 31 |
main: |
| 32 |
@echo $(CWD) |
| 33 |
@echo Downloading External Libraries... |
| 34 |
|
| 35 |
$(HTTP_FETCH) $(CWD)/static/css/bootstrap.min.css $(BOOTSTRAP_CSS_URL) |
| 36 |
$(HTTP_FETCH) $(CWD)/static/js/bootstrap.min.js $(BOOTSTRAP_JS_URL) |
| 37 |
$(HTTP_FETCH) $(CWD)/static/js/jquery.min.js $(JQUERY_JS_URL) |
| 38 |
$(HTTP_FETCH) $(CWD)/static/js/typeahead.bundle.min.js $(TYPEAHEAD_JS_URL) |
| 39 |
$(HTTP_FETCH) $(CWD)/static/js/lazysizes.min.js $(LAZYSIZES_URL) |
| 40 |
|
| 41 |
@echo Downloading Logo... |
| 42 |
@mkdir -p $(CWD)/static/img |
| 43 |
$(HTTP_FETCH) $(CWD)/static/img/logo-munin.png $(LOGO_URL) |
| 44 |
|
| 45 |
@echo Downloading Favicon Files... |
| 46 |
|
| 47 |
@mkdir -p $(CWD)/static/img/favicon |
| 48 |
@for file in ${FAVICON_FILES}; do \
|
| 49 |
eval $(HTTP_FETCH) $(CWD)/static/img/favicon/$${file} $(FAVICON_BASEURL)$${file}; \
|
| 50 |
done |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
