feat(release): add packaging support for Arch, Debian, and RPM
* Implement Arch package build process in release workflow * Add Debian and RPM packaging specifications * Include man page installation in Makefile * Create unitdore man page for documentation
This commit is contained in:
6
Makefile
6
Makefile
@@ -12,16 +12,18 @@ all: build
|
||||
build:
|
||||
go build $(LDFLAGS) -o $(BINARY) .
|
||||
|
||||
## install: install binary and create config dir
|
||||
## install: install binary, man page, and create config dir
|
||||
install: build
|
||||
install -Dm755 $(BINARY) $(INSTALL_DIR)/$(BINARY)
|
||||
install -Dm644 docs/unitdore.1 /usr/share/man/man1/unitdore.1
|
||||
mkdir -p $(CONFIG_DIR)
|
||||
@echo "Installed to $(INSTALL_DIR)/$(BINARY)"
|
||||
@echo "Config dir: $(CONFIG_DIR)"
|
||||
|
||||
## uninstall: remove binary
|
||||
## uninstall: remove binary and man page
|
||||
uninstall:
|
||||
rm -f $(INSTALL_DIR)/$(BINARY)
|
||||
rm -f /usr/share/man/man1/unitdore.1
|
||||
@echo "Removed $(INSTALL_DIR)/$(BINARY)"
|
||||
|
||||
## test: run all unit tests
|
||||
|
||||
Reference in New Issue
Block a user