Makefile: Better support Darwin and Windows_NT
This commit is contained in:
parent
d74f23134f
commit
5ce1c8ed8f
1 changed files with 15 additions and 8 deletions
21
Makefile
21
Makefile
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue