1
0

Makefile: detect running OS

This commit is contained in:
Quentin Rameau 2018-04-30 15:14:31 +02:00 committed by Aaron Marcher
parent 3fe1db8892
commit 92ab9ef52e
3 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,7 @@
# slstatus - suckless status monitor
.POSIX:
include os.mk
include config.mk
REQ = util

5
README
View File

@ -36,8 +36,9 @@ In order to build slstatus you need the Xlib header files.
Installation
------------
Edit config.mk to match your local setup (slstatus is installed into the
/usr/local namespace by default). Uncomment OSSLIBS on OpenBSD.
Run ./configure first to detect your operating system.
Optionally edit config.mk to match your local setup (slstatus is installed into
the /usr/local namespace by default). Uncomment OSSLIBS on OpenBSD.
Afterwards enter the following command to build and install slstatus (if
necessary as root):

3
configure vendored Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
printf 'OS = %s\n' "$(uname)" > os.mk