Skip to content

Commit c1323dc

Browse files
authored
Add requirements to install and uninstall targets (#297)
Adds the `build` target as a requirement for `install`, so that running `make install` without `build` wouldn't cause an error. Also Adds `uninstall-manpages` to the `uninstall` target
1 parent 6a957f9 commit c1323dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ all: build
77
build:
88
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o ${BINARY_NAME}
99

10-
install:
10+
install: build
1111
install -Dm755 ${BINARY_NAME} ${DESTDIR}${PREFIX}/bin/${BINARY_NAME}
1212
sudo mkdir -p ${DESTDIR}/etc/apx
1313
sed -i 's|/usr/share/apx/distrobox|${PREFIX}/share/apx/distrobox|g' config/apx.json
@@ -21,7 +21,7 @@ install-manpages:
2121
cp -r man/* ${DESTDIR}${PREFIX}/share/man/.
2222
chmod 644 ${DESTDIR}${PREFIX}/share/man/man1/apx*
2323

24-
uninstall:
24+
uninstall: uninstall-manpages
2525
sudo rm ${DESTDIR}${PREFIX}/bin/apx
2626
sudo rm -rf ${DESTDIR}/etc/apx
2727
sudo rm -rf ${DESTDIR}${PREFIX}/share/apx

0 commit comments

Comments
 (0)