Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Makefile): don't use sudo #397

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ build:

install: build
install -Dm755 ${BINARY_NAME} ${DESTDIR}${PREFIX}/bin/${BINARY_NAME}
sudo mkdir -p ${DESTDIR}/etc/apx
mkdir -p ${DESTDIR}/etc/apx
sed -i 's|/usr/share/apx/distrobox|${PREFIX}/share/apx/distrobox|g' config/apx.json
sudo install -Dm644 config/apx.json ${DESTDIR}/etc/apx/apx.json
install -Dm644 config/apx.json ${DESTDIR}/etc/apx/apx.json
mkdir -p ${DESTDIR}${PREFIX}/share/apx/distrobox
sh distrobox/install --prefix ${DESTDIR}${PREFIX}/share/apx/distrobox
mv ${DESTDIR}${PREFIX}/share/apx/distrobox/bin/distrobox* ${DESTDIR}${PREFIX}/share/apx/distrobox/.
Expand All @@ -22,12 +22,12 @@ install-manpages:
chmod 644 ${DESTDIR}${PREFIX}/share/man/man1/apx*

uninstall: uninstall-manpages
sudo rm ${DESTDIR}${PREFIX}/bin/apx
sudo rm -rf ${DESTDIR}/etc/apx
sudo rm -rf ${DESTDIR}${PREFIX}/share/apx
rm ${DESTDIR}${PREFIX}/bin/apx
rm -rf ${DESTDIR}/etc/apx
rm -rf ${DESTDIR}${PREFIX}/share/apx

uninstall-manpages:
sudo rm -rf ${DESTDIR}${PREFIX}/share/man/man1/apx*
rm -rf ${DESTDIR}${PREFIX}/share/man/man1/apx*

clean:
rm -f ${BINARY_NAME}
Expand Down