pulseaudio-tcp/Makefile

30 lines
742 B
Makefile
Raw Permalink Normal View History

2023-10-08 22:09:08 +02:00
NAME=pulseaudio-tcp
PREFIX=/usr
BINDIR=$(PREFIX)/bin
APPDIR=$(PREFIX)/share/applications
DESTDIR=
all:
install-bin: $(NAME)
@install -m 755 "$(NAME)" "$(DESTDIR)$(BINDIR)"/"$(NAME)"
@echo "INFO: $(NAME) was installed to $(BINDIR)"
install-desktop: $(NAME).desktop.in
@cat "$(NAME)".desktop.in | \
sed -e "\
s|@BINDIR@|$(BINDIR)|; \
s|@NAME@|$(NAME)| \
" \
< $(NAME).desktop.in \
> "$(APPDIR)"/"$(NAME)".desktop
@echo "INFO: $(NAME).desktop was installed to $(APPDIR)"
install: install-bin install-desktop
@if test -z "$(DESTDIR)" ; then \
if test -n "$$(which update-desktop-database)" ; then \
update-desktop-database "$(APPDIR)" ; \
echo "INFO: desktop database for $(APPDIR) was updated." ; \
fi ; \
fi