fix makefile default rule
[julm/air-duino.git] / GNUmakefile
index e54abbf91cc69ae392ae78c6419ebb58ae45e284..40d65646e66232f58a3869f584f6a6d257e89532 100644 (file)
@@ -14,7 +14,7 @@ uniq=$(if $1,$(call \
  ,$2)
 
 views := png html5
-all: $(views)
+#all: $(views)
 
 #
 ## Sensors
@@ -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,9 +56,10 @@ 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
@@ -150,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 ' \
        <report year="$(year)" month="$(month)"> \
@@ -167,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
 ###