diff --git a/Makefile b/Makefile index 0a9a4fe..1bdd5c9 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,8 @@ PREFIX ?= /usr/local # for conditionally compiling OS features OS != uname +OS_INCLUDE != test -e include/$(OS).mk && printf 'include/$(OS).mk\n' \ + || include/None.mk # normalized prefix PREFIX_N != dirname $(PREFIX)/. @@ -77,9 +79,8 @@ docs: docs/ build "s/X\.X\.X/$$(git describe --tags --long | cut -d'-' -f1)/g")"; \ sed "s/$$original/$$title/g" <"$$file" >"build/$$file"; done - # include OS feature libraries for compilation -include include/$(OS).mk +include $(OS_INCLUDE) .PHONY: rustlibs rustlibs: build/o/libgetopt.rlib build/o/libstrerror.rlib \ diff --git a/include/Linux.mk b/include/Linux.mk deleted file mode 100644 index 8d679b4..0000000 --- a/include/Linux.mk +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright (c) 2024 Emma Tebibyte -# SPDX-License-Identifier: FSFAP -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice and this -# notice are preserved. This file is offered as-is, without any warranty. diff --git a/include/None.mk b/include/None.mk new file mode 100644 index 0000000..e69de29