Commit Graph

18 Commits

Author SHA1 Message Date
James Patrick
70f2826afe Refactored make targets. 2021-11-28 16:33:24 -05:00
baa1af26a4 Init script will reset this from https to ssh. 2020-06-03 00:20:58 -04:00
b370249ff1 -v var doesn't work on older version of zsh.
As such I had to switch this to -n with parameter expansion
2020-06-02 18:39:58 +00:00
b86e96b570 Adding emacs magic-ish line for make files. 2020-03-19 15:55:20 -04: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
39632d150e Added better reporting for mk_link. 2019-12-13 14:31:35 -05:00
5b81a2827b Added Step that create parent dir in symlinking. 2019-12-13 12:36:07 -05:00
578b14331f Added emacs modeline like feature. 2019-12-11 00:55:57 -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
3fcd8d81e5 Updated report to use unicode X. Matches rest of pattern. 2019-05-02 00:48:47 -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
30b0cc68ae Adding makefile for all current configurations. 2019-04-27 18:21:33 -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
649b158166 relocated bin -> lib
lib will be more accurate since a lot of these aren't going to be bin stubs.
2019-04-27 18:07:48 -04:00