feat(release): v0.3.0
commit 533ac4e58256e6520a86af964fcf4c2f9a98d4ba Author: adminoo <git@kadath.corp> Date: Mon Feb 23 18:52:59 2026 +0100 feat: freebsd release tarball generator commit874fb63fd0Author: adminoo <git@kadath.corp> Date: Mon Feb 23 14:05:24 2026 +0100 feat: bump changelog commit46ab7e2911Author: adminoo <git@kadath.corp> Date: Mon Feb 23 13:58:14 2026 +0100 feat: margin and page breaks commit44751a808aAuthor: adminoo <git@kadath.corp> Date: Mon Feb 23 13:57:56 2026 +0100 feat: picture are worth thousand words commita5683428e0Author: adminoo <git@kadath.corp> Date: Mon Feb 23 13:39:00 2026 +0100 feat: navigate individual sections commit0d9b7c4e7bAuthor: adminoo <git@kadath.corp> Date: Mon Feb 23 13:38:19 2026 +0100 feat: make use of vendoring
This commit is contained in:
24
Makefile
24
Makefile
@ -1,18 +1,34 @@
|
||||
build:
|
||||
mkdir -p _bin
|
||||
go build -o _bin/donniemarko cmd/main.go
|
||||
GOFLAGS=-mod=vendor go build -o _bin/donniemarko cmd/main.go
|
||||
|
||||
install:
|
||||
cp bin/donniemarko ~/.local/bin/
|
||||
|
||||
vendor:
|
||||
go mod vendor
|
||||
|
||||
test:
|
||||
go test -v -cover ./...
|
||||
GOFLAGS=-mod=vendor go test -v -cover ./...
|
||||
|
||||
run:
|
||||
go run main.go
|
||||
GOFLAGS=-mod=vendor go run main.go
|
||||
|
||||
freebsd:
|
||||
mkdir -p _bin
|
||||
GOOS=freebsd GOARCH=amd64 go build -o _bin/donniemarko-freebsd cmd/main.go
|
||||
GOOS=freebsd GOARCH=amd64 GOFLAGS=-mod=vendor go build -o _bin/donniemarko-freebsd cmd/main.go
|
||||
@stage_dir="_bin/freebsd-release"; \
|
||||
rm -rf "$$stage_dir"; \
|
||||
ver="$$(cat VERSION 2>/dev/null || echo 0.0.0)"; \
|
||||
archive_dir="donniemarko-freebsd-$${ver}"; \
|
||||
archive_root="$$stage_dir/$$archive_dir"; \
|
||||
mkdir -p "$$archive_root/usr/local/bin" \
|
||||
"$$archive_root/usr/local/etc/rc.d" \
|
||||
"$$archive_root/usr/local/etc/newsyslog.conf.d"; \
|
||||
cp _bin/donniemarko-freebsd "$$archive_root/usr/local/bin/donniemarko"; \
|
||||
cp packaging/freebsd/donniemarko "$$archive_root/usr/local/etc/rc.d/donniemarko"; \
|
||||
cp packaging/freebsd/newsyslog.conf.d/donniemarko "$$archive_root/usr/local/etc/newsyslog.conf.d/donniemarko"; \
|
||||
cp packaging/freebsd/release.Makefile "$$archive_root/Makefile"; \
|
||||
tar -C "$$stage_dir" -czf "_bin/$${archive_dir}.tar.gz" "$$archive_dir"
|
||||
|
||||
all: build install
|
||||
|
||||
Reference in New Issue
Block a user