#/ # @license Apache-2.0 # # Copyright (c) 2026 The Stdlib Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #/ # VARIABLES # ifndef VERBOSE QUIET := @ else QUIET := endif # Determine the OS ([1][1], [2][2]). # # [1]: https://en.wikipedia.org/wiki/Uname#Examples # [2]: http://stackoverflow.com/a/27776822/2225624 OS ?= $(shell uname) ifneq (, $(findstring MINGW,$(OS))) OS := WINNT else ifneq (, $(findstring MSYS,$(OS))) OS := WINNT else ifneq (, $(findstring CYGWIN,$(OS))) OS := WINNT else ifneq (, $(findstring Windows_NT,$(OS))) OS := WINNT endif endif endif endif # RULES # #/ # Removes generated files for building an add-on. # # @example # make clean-addon #/ clean-addon: $(QUIET) -rm -f *.o *.node .PHONY: clean-addon #/ # Removes generated files. # # @example # make clean #/ clean: clean-addon .PHONY: clean