Skip to content

Commit dd4e390

Browse files
committed
make install location usr/local/bin
1 parent 5a27723 commit dd4e390

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
BINARY_NAME=dsearch
44
SOURCE_DIR=cmd/dsearch
55
BUILD_DIR=bin
6-
INSTALL_DIR=$(HOME)/.local/bin
6+
PREFIX ?= /usr/local
7+
INSTALL_DIR=$(PREFIX)/bin
78
SYSTEMD_USER_DIR=$(HOME)/.config/systemd/user
89
SERVICE_NAME=dsearch
910

@@ -76,7 +77,7 @@ version: check-go
7677
@echo "Build Time: $(BUILD_TIME)"
7778
@echo "Commit: $(COMMIT)"
7879

79-
install-service: install
80+
install-service:
8081
@echo "Installing systemd user service..."
8182
@mkdir -p $(SYSTEMD_USER_DIR)
8283
@cp assets/$(SERVICE_NAME).service $(SYSTEMD_USER_DIR)/$(SERVICE_NAME).service

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ A configurable filesystem search service powered by [bleve](https://github.com/b
3232
Requires [Go](https://go.dev) 1.24+
3333

3434
```bash
35-
make && make install && make install-service
35+
make && sudo make install && make install-service
3636
```
3737

3838
## Usage

assets/dsearch.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ After=network.target
55

66
[Service]
77
Type=simple
8-
ExecStart=%h/.local/bin/dsearch serve
8+
ExecStart=/usr/local/bin/dsearch serve
99
Restart=on-failure
1010
RestartSec=5s
1111

0 commit comments

Comments
 (0)