Xinqi Bao's Git

cpu: OS split
[slstatus.git] / Makefile
index 00c35c4..dee5a4b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,13 @@
 # slstatus - suckless status monitor
 .POSIX:
 
+include os.mk
 include config.mk
 
 REQ = util
 COM =\
-       components/battery\
-       components/cpu\
+       components/$(OS)/battery \
+       components/$(OS)/cpu \
        components/datetime\
        components/disk\
        components/entropy\