From c79e1c19718e697e94b9dab338d1fbd20c33e4e8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 19 Mar 2022 02:26:24 +0300 Subject: Makefile: add view --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0426d41..9ad5d9f 100644 --- a/Makefile +++ b/Makefile @@ -43,3 +43,7 @@ URL := http://localhost:4000/blog/ .PHONY: wget wget: wget --no-verbose --recursive --no-parent --convert-links --adjust-extension -e robots=off --directory-prefix=.wget -- '$(call escape,$(URL))' + +.PHONY: view +view: + xdg-open '$(call escape,$(URL))' &> /dev/null -- cgit v1.2.3