30 lines
742 B
Makefile
30 lines
742 B
Makefile
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
|