Polissage : GNUmakefile : hlint : affiche l’emplacement du rapport.
authorJulien Moutinho <julm+hcompta@autogeree.net>
Thu, 6 Aug 2015 01:59:00 +0000 (03:59 +0200)
committerJulien Moutinho <julm+hcompta@autogeree.net>
Thu, 6 Aug 2015 02:34:03 +0000 (04:34 +0200)
GNUmakefile

index 689ad6badc2fdcb5845aa9ec4d5722a45012848e..44c298b5c0c5a3aab44410303983879f9a9c7249 100644 (file)
@@ -108,8 +108,10 @@ doc/%: .
 ##  hlint
 ###
 hlint: $(HCOMPTA_INTERFACES:=/hlint.html)
+%/hlint: %/hlint.html
+       
 %/hlint.html: .
-       hlint \
+       if hlint \
         -i 'Redundant $$' \
         -i 'Redundant bracket' \
         -i 'Redundant do' \
@@ -119,7 +121,9 @@ hlint: $(HCOMPTA_INTERFACES:=/hlint.html)
         -i 'Use String' \
         -i 'Use string literal' \
         --quiet --report="$@" \
-        "$*"/Hcompta && rm -f "$@"
+        "$*"/Hcompta; \
+       then rm -f "$@"; \
+       else echo; echo "BROWSE REPORT AT: file://$(abspath $@)"; fi
 
 #
 ##  prof