Makefile: add automatic view targets
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 6 Dec 2016 15:09:41 +0000 (10:09 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 6 Dec 2016 15:09:41 +0000 (10:09 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Makefile

index f0ee1399653e1957e8c1fd43761144337979d5d9..0271a0db0c21b2794cf26e36664ad09fe10c2053 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,11 @@ $(1)/$(PREFIX)-$(1).html: $(1)/$(PREFIX)-$(1).txt $(CONF)
 .PHONY: $(1)
 
 $(1): $(1)/$(PREFIX)-$(1).html
+
+view-$(1):
+       xdg-open $(1)/$(PREFIX)-$(1).html
+
+.PHONY: view-$(1)
 endef
 
 .PHONY: all
This page took 0.023594 seconds and 4 git commands to generate.