Skip to content

Commit 414d078

Browse files
committed
Install man page during installation
1 parent a9224dd commit 414d078

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

makefile

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ OUT_DIR=build
55
build:
66
mkdir -p $(OUT_DIR)
77
go build -o $(OUT_DIR)/2rm ./src/main.go
8+
pandoc -s --to man ./README.md -o ./$(OUT_DIR)/2rm.1
9+
10+
build-program:
11+
mkdir -p $(OUT_DIR)
12+
go build -o $(OUT_DIR)/2rm ./src/main.go
813

914
test:
1015
go test ./src/...
@@ -14,6 +19,7 @@ clean:
1419

1520
install:
1621
cp ./$(OUT_DIR)/2rm ~/.local/bin/2rm
22+
sudo cp ./$(OUT_DIR)/2rm.1 /usr/share/man/man1/2rm.1
1723

1824
docs:
1925
mkdir -p $(OUT_DIR)

0 commit comments

Comments
 (0)