summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2018-05-29Don't explicitly list each component-targetLaslo Hunhold
I made a mistake while reading the Posix spec. In fact, the implicit prerequisite imposed by the .c.o-rule is evaluated as expected, even if the .c is not given in the target rule. This partially reverts 0efd64ffaa04715eff9c834c437562952c4531cd.
2018-05-28Fix object order and stop using a GNU make idiomLaslo Hunhold
2018-05-27Explicitly list component-objects in the MakefileLaslo Hunhold
There was a long tinkering process at farbfeld about this, but the sad truth is that it's the only way to make the Makefile truly portable. Listing it just as $(COM:=.o): config.mk $(REQ:=.h) omits the dependency on the c-file itself, which incurs that strictly speaking the object file is not depending on the source file, which is nonsense. You don't see strictly Posix compliant Makefiles around very often and most use nasty GNU-extensions everywhere. It is a good idea to go ahead as a fitting example and show how to write them portably.
2018-05-27Revert "Add basic backlight percentage support"Aaron Marcher
On OpenBSD the backlight percentage cannot be retrieved in a simple way. The only two solutions we are aware of for now are: - reading from /dev/ttyC0: which isn't possible without changing permissions or running slstatus as root - linking against xcb-xrandr: which is bloat and does not work in every case appearently This reverts commit 37724ac2c3f496f4736223d0d8e5d8fecb933590 for now.
2018-05-23Add keymap componentMichael Buch
Adding a new keymap component that will indicate the current keyboard layout (language) and variant if any was set. I use the standard X11 XKB APIs to retrieve and parse the xkb_symbols set with setxkbmap.
2018-05-22Add basic backlight percentage supportDavid Demelier
At the moment linux only, but will add support for OpenBSD as well.
2018-05-19Add network speed functionsAaron Marcher
2018-05-01Tweak build system a little bitLaslo Hunhold
Be consistent with brackets and add a comment for OpenBSD to make it clearer what the actual intent of the uncommented line is. In the Makefile, add a dependency of slstatus.o from config.mk.
2018-05-01Revert component-splitLaslo Hunhold
this reverts the commits from 92ab9ef52ebcb097add97d9f78e67ad1c1d6a6ec up to d42870d6ca7fb587b38f8cf6d6821ae33a53a696. After heavy consideration, the component split has more disadvantages than advantages, especially given there will be utility-functions sharing quite a lot of code that would then need to be duplicated, as it does not fit into the util.c due to its speciality. One big advantage of the component-wise build is readability, and without doubt, this was achieved here. This point will be addressed with a different approach that will be visible in the upcoming commits. One big disadvantage of the component build is the fact that it introduces state to the build process which is not necessary. Before its introduction, the only influencing factors where the system-defines __linux__ and __OpenBSD__. With the components, we are also relying on the output of uname(1). Additionally, if the os.mk is not present, make gives the output $ make Makefile:5: os.mk: No such file or directory make: *** No rule to make target 'os.mk'. Stop. This could easily be fixed by providing some sort of meta-rule for this file, however, it indicates the problem we have here, and this entire statefulness will heavily complicate packaging of this tool and makes the build process much more complex than it actually has to be.
2018-04-30Makefile: add distclean targetQuentin Rameau
2018-04-30Makefile: move OS-specific libs to configure scriptQuentin Rameau
2018-04-30Makefile: separate default flags from user flagsQuentin Rameau
2018-04-30wifi: OS splitQuentin Rameau
2018-04-30uptime: OS splitQuentin Rameau
2018-04-30temperature: OS splitQuentin Rameau
2018-04-30swap: OS splitQuentin Rameau
2018-04-30ram: OS splitQuentin Rameau
2018-04-30entropy: OS splitQuentin Rameau
2018-04-30cpu: OS splitQuentin Rameau
2018-04-30battery: OS splitQuentin Rameau
2018-04-30Makefile: detect running OSQuentin Rameau
2017-09-24Move components into dedicated subdirectoryLaslo Hunhold
This brings us a lot more tidiness.
2017-09-18Get rid of HDR variableLaslo Hunhold
The HDR variable is used for general purpose headers, which are not given in this project. arg.h and config.h are only needed for slstatus.c, not every component $(COM:=.c). This also fixes a problem introduced in e04a3853643df1c98a451969d515d8850f138bcc, where config.h is pulled into the tarball.
2017-09-18Simplify MakefileLaslo Hunhold
2017-09-18Fix missing config.h in MakefileQuentin Rameau
2017-09-17Rewrite Makefile to accomodate file splitLaslo Hunhold
2017-08-13Added Makefile target for distribution tarballs.Aaron Marcher
2017-08-10Refactor build systemLaslo Hunhold
2017-01-09Makefile fix and vol_perc fix for muteAaron Marcher
2017-01-09simplified MakefileAaron Marcher
2017-01-09small Makefile tweakAaron Marcher
2017-01-09Makefile: Added back config.h handling in MakefileAaron Marcher
2017-01-09Makefile: Fixes #35Aaron Marcher
2017-01-07saner makefile: cleaner, simpler, sucklessAaron Marcher
2016-12-29why releases for such a small project? useless and overhead!Aaron Marcher
2016-09-17added man pageAaron Marcher
2016-09-14do not overwrite config.h if config.def.h changesAaron Marcher
2016-09-05what kind of weed is that?Ali H. Fardan
2016-09-05added a tool for resetting the status bar && worked around some issues && ↵Ali H. Fardan
removed the makefile (we need a better one)
2016-03-10make config.h target depending on config.def.hDaniel Walter
2016-03-04added config.def.h handling and fixed typoAaron Marcher
2016-03-04initial commitAaron Marcher