diff options
author | Quentin Rameau <quinq@fifth.space> | 2018-04-30 15:14:31 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-04-30 15:40:20 +0200 |
commit | 92ab9ef52ebcb097add97d9f78e67ad1c1d6a6ec (patch) | |
tree | 6df02938e74cfbbb2ec7241810a472908717af92 | |
parent | 3fe1db88922f9c06ee92ad6b6655ca0788aef93b (diff) |
Makefile: detect running OS
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | README | 5 | ||||
-rwxr-xr-x | configure | 3 |
3 files changed, 7 insertions, 2 deletions
@@ -2,6 +2,7 @@ # slstatus - suckless status monitor .POSIX: +include os.mk include config.mk REQ = util @@ -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): diff --git a/configure b/configure new file mode 100755 index 0000000..ee57a7f --- /dev/null +++ b/configure @@ -0,0 +1,3 @@ +#!/bin/sh + +printf 'OS = %s\n' "$(uname)" > os.mk |