mirror of https://github.com/ericonr/dotfiles.git
Reorganize Go programs inside sourcecode/.
This commit is contained in:
parent
9d056e96aa
commit
491c2c7b0e
14
README.md
14
README.md
|
@ -4,6 +4,8 @@
|
|||
|
||||
Uses [GNU stow](https://www.gnu.org/software/stow/) for managing symlinks! The default `.stowrc` file is setup for my home directory, and for adopting files (overwrite existing files, bringing them into the repo).
|
||||
|
||||
Also uses [Go](https://golang.org/) programs to perform a few tasks.
|
||||
|
||||
In order to link all files, use
|
||||
|
||||
```bash
|
||||
|
@ -50,3 +52,15 @@ This setup, which can be found on `wm` and `script`, requires the following depe
|
|||
* `slurp`: select a geometry on a wayland screen.
|
||||
|
||||
**Obs:** A few needed programs can be installed by running the Makefile inside `sourcecode/`.
|
||||
|
||||
**Obs.:** This configuration requires some executables that can be obtained from the `sourcecode/` directory.
|
||||
|
||||
## `sourcecode`
|
||||
|
||||
To install the executables inside this directory, it's necessary to run
|
||||
|
||||
```shell
|
||||
go install ./...
|
||||
```
|
||||
|
||||
inside it.
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
BUILD_DIR ?= ~/.local/bin
|
||||
|
||||
GOSRC = $(wildcard *.go)
|
||||
GOTARGET = $(GOSRC:%.go=$(BUILD_DIR)/%)
|
||||
|
||||
TARGETS = $(GOTARGET)
|
||||
|
||||
.PHONY: all go clean
|
||||
|
||||
all: go
|
||||
|
||||
go: $(GOTARGET)
|
||||
|
||||
$(BUILD_DIR)/%: %.go
|
||||
go build -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS)
|
Loading…
Reference in New Issue