Commit Graph

9 Commits

Author SHA1 Message Date
James Patrick
47eb4d062f I Msipsell wrods somtimes 2022-01-05 23:13:29 -05:00
19d90c9add Added errors for make requirements. 2020-03-09 14:41:18 -04:00
6c3787ef1b Refactored to use .ONESHELL
This makes it a hell of a lot simpler but will lose support for BSD
make. All effected machines are running gnu-make, so the cost benefit
ratio ways heavily in favor of doing this.
2020-03-09 13:37:50 -04:00
3b9211202a Cleaned up makefile 2019-12-15 01:37:19 -05:00
35000ec4ce Fixed eager evaluation of conditionals issue. 2019-12-15 00:32:55 -05:00
569598683e Fixed bad XDG CONFIG value.
Not sure why I thought it would be DIR instead of HOME but I blame
poorly executed theft.
2019-11-22 14:53:31 -05:00
cc1893d6b5 Added SSH awareness.
This should be used with

```
ifndef IS_SSH
```

I will try and move IS_MAC and IS_LINUX to work with this as well. Issue I'm
having is or statements.
2019-05-16 20:13:40 -04:00
e5b9486fb3 Added Truthy shortcut for return val.
I don't really like the feel of this but this allows us to call
$(return_val_truthy) to output a value of tue or false based on the retrun value
of the last command. This saves us from having to do make the call ` && echo
true || echo false`.

I will probaby switch this in the future to just have a `echo $?` function
instead. Then check if returnVal == zero. If I do that I will also need to
change the way OS works, requiring true => 0 and false => 1, which is a little
bit conter to how it should be.
2019-04-30 23:22:02 -04:00
e49934c99d Adding shared makefile logic and helper scripts
Shared logic can be imported via `include ../lib/shared.mk`
Helper functions include 3 current opperations

1. mk_link:: This will create a symbolic link if the file doesn't already exist.
2. rm_link:: Will remove the link if it is a symlink.
3. report :: This color codes the status of a message and adds a leading symbol.

report also can be called with `LAST_RETURN=$? report "message"`
and will expand this to be either `report info "message"` Or `report error
"message"` based on the last return value.
Current status are info, warn, and error.
2019-04-27 18:09:36 -04:00