X-Git-Url: https://git.sourcephile.fr/julm/air-duino.git/blobdiff_plain/2c9ce7714e90e9826abfac5a82e4592151c38e46..4191f79f33c2016f690c25a63eb42e6bf7f9cfb2:/GNUmakefile diff --git a/GNUmakefile b/GNUmakefile index 7ab4aaa..1e7b150 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -22,13 +22,15 @@ all: $(views) SENSOR_LABEL_temperature=Température (°C) SENSOR_LABEL_humidity=Humidité (%) -SENSOR_LABEL_particles=Particules -SENSOR_LABEL_quality=Qualité de l’air +SENSOR_LABEL_dust=Particules +SENSOR_LABEL_air=Qualité de l’air +SENSOR_LABEL_co_ch4_lpg=CO/CH4/LPG sensors := \ temperature \ humidity \ - quality \ - particles + air \ + dust \ + co_ch4_lpg # ## Round Robin Database (RRD) @@ -54,11 +56,14 @@ ARDUINO_LIBS := \ DustSensor \ Humidity_Temperature_Sensor \ LCD_Display9696 \ + RTC \ Wire -USER_LIB_PATH := $(abspath ./libraries) +USER_LIB_PATH := $(realpath ./libraries) +ifeq ($(NO_INO),) include $(ARDMK_DIR)/Arduino.mk +endif ino: $(TARGET_EEP) $(TARGET_HEX) @@ -107,6 +112,15 @@ rrd/$(year)/$(month).rrd LINE1:$(sensor)'#ff0000':"$(sensor)"; endef +define view/year/month/png +view/$(year)/$(month)/png: \ +$(foreach sensor,$(sensors), view/$(sensor)/$(year)/$(month)/png) +endef +define view/year/month/day/png +view/$(year)/$(month)/$(day)/png: \ +$(foreach sensor,$(sensors), view/$(sensor)/$(year)/$(month)/$(day)/png) +endef + # ## HTML5 ### @@ -139,7 +153,7 @@ view/$(year)/$(month)/html5: \ view/$(year)/$(month).html5 view/$(year)/$(month).html5: \ -$(foreach sensor,$(sensors), view/$(sensor)/$(year)/$(month)/png) +view/$(year)/$(month)/png mkdir -p $$(@D) printf ' \ \ @@ -156,12 +170,6 @@ $(foreach sensor,$(sensors), view/$(sensor)/$(year)/$(month)/png) xsl/year/month.html5.xsl - endef -define view/sensor/year/month/day/html5 -#view/$(sensor)/$(year)/$(month)/$(day)/html5: \ -#view/$(sensor)/$(year)/$(month)/$(day).html5 - -endef - # ## Dates ### @@ -188,7 +196,7 @@ $(call view/sensor/year/$(view)) endef define foreach/year/month/sensor/view -.PHONY: view/$(sensor)/$(year)/$(month)/$(view) +.PHONY: view/$(sensor)/$(year)/$(month)/$(view) view/$(sensor)/$(year)/$(view): view/$(sensor)/$(year)/$(month)/$(view) $(call view/sensor/year/month/$(view)) endef @@ -199,10 +207,15 @@ $(call view/year/month/$(view)) endef define foreach/year/month/day/sensor/view -.PHONY: view/$(sensor)/$(year)/$(month)/$(day)/$(view) +.PHONY: view/$(sensor)/$(year)/$(month)/$(day)/$(view) view/$(sensor)/$(year)/$(month)/$(view): view/$(sensor)/$(year)/$(month)/$(day)/$(view) $(call view/sensor/year/month/day/$(view)) endef +define foreach/year/month/day/view +.PHONY: view/$(year)/$(month)/$(day)/$(view) +view/$(year)/$(month)/$(view): view/$(year)/$(month)/$(day)/$(view) +$(call view/year/month/day/$(view)) +endef $(foreach sensor,$(sensors), \ $(foreach view,$(views), \