pulseaudio-tcp/Makefile
2025-03-30 15:31:48 +02:00

34 lines
885 B
Makefile

NAME=pulseaudio-tcp
PREFIX=/usr
BINDIR=$(PREFIX)/bin
APPDIR=$(PREFIX)/share/applications
DESTDIR=
.PHONY: all install-bin install-desktop install
all:
install-bin: $(NAME)
@install -d -m 755 "$(DESTDIR)$(BINDIR)"
@install -m 755 "$(NAME)" "$(DESTDIR)$(BINDIR)"/"$(NAME)"
@echo "INFO: $(NAME) was installed to $(BINDIR)"
install-desktop: $(NAME).desktop.in
@install -d -m 755 "$(DESTDIR)$(APPDIR)"
@cat "$(NAME)".desktop.in | \
sed -e "\
s|@BINDIR@|$(BINDIR)|; \
s|@NAME@|$(NAME)| \
" \
< $(NAME).desktop.in \
> "$(DESTDIR)$(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