We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a slightly more intelligent Makefile which works with Gnu make and BSD make. (I do not want to hear cmake or autotools or the like, thank you.)
Makefile
OS.exec = uname -s | tr '[A-Z]' '[a-z]' OS = $(shell $(OS.exec))$(OS.exec:sh) show: @echo $(OS)
/via
The text was updated successfully, but these errors were encountered:
strlcpy
$ sh -c '. /etc/os-release; echo $ID' debian centos alpine # on 3.8.1
Sorry, something went wrong.
first pass at autodetection in Makefile
2d63b46
addresses #13
I've a bit of a feeling as though this is way overkill for this small utility, but this first attempt works on darwin, freebsd, openbsd, and debian.
darwin
freebsd
openbsd
debian
The install target is particularly messy; I pass the target on through the layers of _makewith the$(TARGET)` variable.
install
with the
No branches or pull requests
Create a slightly more intelligent
Makefile
which works with Gnu make and BSD make. (I do not want to hear cmake or autotools or the like, thank you.)/via
The text was updated successfully, but these errors were encountered: