diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-10 11:24:18 +0500 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-10 11:24:18 +0500 |
commit | 7d12c90b969f22d54f7b11569c4c789f8f2bd0e2 (patch) | |
tree | f9f2c9e10098a467158d35840f4d41d950a934ff | |
parent | README: update (diff) | |
download | winapi-utf8-7d12c90b969f22d54f7b11569c4c789f8f2bd0e2.tar.gz winapi-utf8-7d12c90b969f22d54f7b11569c4c789f8f2bd0e2.zip |
Makefile: minor best practices fixes
Diffstat (limited to '')
-rw-r--r-- | Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,6 +1,3 @@ -# Various one-liners which I'm too lazy to remember. -# Basically a collection of really small shell scripts. - MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables unexport MAKEFLAGS .DEFAULT_GOAL := all @@ -9,9 +6,6 @@ unexport MAKEFLAGS SHELL := bash .SHELLFLAGS := -eu -o pipefail -c -.PHONY: DO -DO: - escape = $(subst ','\'',$(1)) define noexpand @@ -49,6 +43,9 @@ $(eval $(call noexpand,BOOST_VERSION)) $(eval $(call noexpand,CMAKE_FLAGS)) $(eval $(call noexpand,DESTDIR)) +.PHONY: DO +DO: + .PHONY: all all: build @@ -90,7 +87,7 @@ docs: cmake --build '$(call escape,$(cmake_dir))' --target docs ifndef CI ifdef xdg-open - xdg-open '$(call escape,$(cmake_dir))/html/index.html' + xdg-open '$(call escape,$(cmake_dir))/html/index.html' &> /dev/null endif endif |