- Added command to clear clipboard history (`cmd_clear.go`). - Implemented command to copy a history item back to the clipboard (`cmd_copy.go`). - Created command to list clipboard history (`cmd_list.go`). - Developed command to watch clipboard changes and store history (`cmd_watch.go`). - Introduced configuration loading for logging and clipboard settings (`config.go`). - Established main application logic with command registration and configuration handling (`main.go`). - Implemented history management with loading, saving, and clearing functionality (`history.go`). - Defined history item structure to store clipboard data (`history_item.go`). - Added utility functions for hashing data and summarizing clipboard content (`hash.go`, `summary.go`). - Updated dependencies in `go.sum`.
21 lines
465 B
Makefile
21 lines
465 B
Makefile
# Define paths and installation directories
|
|
BINARY_NAME := kcm
|
|
BINARY_PATH := bin/$(BINARY_NAME)
|
|
COMPLETION_SCRIPT := bin/${BINARY_NAME}-completion.bash
|
|
|
|
# Build the Go application
|
|
build: clean
|
|
@bin/scripts/build-binary.sh $(BINARY_NAME) $(BINARY_PATH) $(COMPLETION_SCRIPT)
|
|
|
|
clean:
|
|
@bin/scripts/clean.sh $(BINARY_PATH) $(COMPLETION_SCRIPT)
|
|
|
|
install:
|
|
@bin/scripts/install.sh
|
|
|
|
install-global:
|
|
@bin/scripts/install-global.sh
|
|
|
|
uninstall:
|
|
@bin/scripts/uninstall.sh
|