Makefile: Better support Darwin and Windows_NT

This commit is contained in:
Andrea Rogers 2024-04-14 23:32:42 -05:00
commit 5ce1c8ed8f

View file

@ -1,4 +1,18 @@
UNAME := $(shell uname)
ifeq ($(UNAME),Linux)
OPEN=xdg-open
PREFIX ?= /usr/local
else ifeq ($(UNAME),Darwin)
OPEN=open
PREFIX ?= $(HOME)/.local
else ifeq ($(OS),Windows_NT)
OPEN=start
PREFIX ?= /usr/local
else
OPEN=xdg-open
PREFIX ?= /usr/local
endif
INSTALL ?= install
HELPERS := $(wildcard *.bash)
@ -42,13 +56,6 @@ clean:
### README #####################################################################
UNAME := $(shell uname)
ifeq ($(UNAME),Linux)
OPEN=xdg-open
else ifeq ($(UNAME),Darwin)
OPEN=open
endif
pub.css:
wget https://github.com/manuelp/pandoc-stylesheet/raw/acac36b976966f76544176161ba826d519b6f40c/pub.css