Skip to content

Do not hardcode /usr prefix #24

@probonopd

Description

@probonopd

gydl/Makefile

Lines 18 to 28 in 35744b8

install: $(NAME)
install -Dm 0755 $(NAME) /usr/bin/$(NAME)
install -Dm 0644 data/com.github.JannikHv.Gydl.desktop /usr/share/applications/gydl.desktop
install -Dm 0644 data/gydl.svg /usr/share/icons/gydl.svg
install -Dm 0644 LICENSE /usr/share/licenses/gydl/LICENSE
uninstall:
rm /usr/bin/$(NAME)
rm /usr/share/applications/gydl.desktop
rm /usr/share/icons/gydl.svg
rm /usr/share/licenses/gydl/ -r

Please do not hardcode the /usr prefix so that one can use something like

$ ./configure --prefix=/usr
$ make -j$(nproc)
$ make install DESTDIR=$(readlink -f appdir)

$ find appdir/
(...)
appdir/usr/bin
(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions