# Local building
-default: alsa-dispatcher.8 alsa-dispatcher
+default: alsa-dispatcher.8.gz alsa-dispatcher
ALSACONF = $(DESTDIR)/etc/alsa/conf.d/51-dispatcher.conf
-%.8: %.8.adoc
- asciidoctor -b manpage $<
+%: %.lsp
+ newlisp -x $< $@
+ chmod a+x $@
+
+%.8.gz: %.8.adoc
+ asciidoctor -b manpage $< -o - | gzip > $@
$(HOME)/.asoundrc: example.alsa.conf
grep -q ^pcm.dispatch $@ || cat $< >> $@
clean::
- rm -f alsa-dispatcher alsa-dispatcher.8
+ rm -f alsa-dispatcher alsa-dispatcher.8.gz
# Installation building
-BIN = $(DESTDIR)/usr/bin/alsa-dispatcher
-CFG = $(DESTDIR)/etc/alsa/conf.d/51-alsa-dispatcher.conf
-MAN = $(DESTDIR)/usr/share/man/man8/alsa-dispatcher.8.gz
+BINS = alsa-dispatcher alsa-dispatcher.lsp
+MANS = alsa-dispatcher.8.gz
+CFG = 51-alsa-dispatcher.conf
-$(BIN): alsa-dispatcher.lsp
- mkdir -p $$(dirname $@)
- newlisp -x $< $@
- chmod a+x $@
+BINDIR = ${DESTDIR}/usr/bin
+MANDIR = ${DESTDIR}/usr/share/man/man8
+CFGDIR = ${DESTDIR}/etc/alsa/conf.d
+
+INSTALLFILES = $(addprefix ${BINDIR}/,${BINS})
+INSTALLFILES += $(addprefix ${MANDIR}/,${MANS})
+INSTALLFILES += $(addprefix ${CFGDIR}/,${CFG})
-$(MAN): alsa-dispatcher.8.adoc
+${BINDIR}/% ${MANDIR}/%: %
mkdir -p $$(dirname $@)
- asciidoctor -b manpage $< -o - | gzip > $@
+ install $< $@
-$(CFG): example.alsa.conf
+${CFGDIR}/51-alsa-dispatcher.conf: example.alsa.conf
mkdir -p $$(dirname $@)
- cp $< $@
+ install -m 644 $< $@
+
+install: ${INSTALLFILES}
-install: $(BIN) $(CFG) $(MAN)
+GENERATED = debian/alsa-dispatcher debian/.debhelper debian/files
+GENERATED += debian/alsa-dispatcher.substvars debian/debhelper-build-stamp
clean::
- rm -rf debian/alsa-dispatcher debian/alsa-dispatcher.substvars
- rm -f debian/files debian/debhelper-build-stamp
+ rm -rf ${GENERATED}
alsa-dispatcher for Debian
-------------------------
-<possible notes regarding this package - if none, delete this file>
+Written in newlisp for easy modification.
- -- Ralph Ronnquist <ralph@localhost> Sat, 29 Apr 2023 13:18:58 +1000
+ -- Ralph Ronnquist <ralph.ronnquist@gmail.com> Sat, 29 Apr 2023 13:18:58 +1000
alsa-dispatcher for Debian
-------------------------
-<this file describes information about the source package, see Debian policy
-manual section 4.14. You WILL either need to modify or delete this file>
+Written in newlisp for easy modification.
-
-
- -- Ralph Ronnquist <ralph@localhost> Sat, 29 Apr 2023 13:18:58 +1000
+ -- Ralph Ronnquist <ralph.ronnquist@gmail.com> Sat, 29 Apr 2023 13:18:58 +1000
--- /dev/null
+ alsa-dispatcher.8.gz usr/share/man/man8/alsa-dispatcher.lsp.8.gz
-alsa-dispatcher (0.1) unstable; urgency=medium
+alsa-dispatcher (0.1) unreleased; urgency=medium
* Initial Release.
- -- Ralph Ronnquist <ralph.ronnquit@gmail.com> Sat, 29 Apr 2023 13:18:58 +1000
+ -- Ralph Ronnquist <ralph.ronnquist@gmail.com> Sat, 29 Apr 2023 13:18:58 +1000
Source: alsa-dispatcher
-Section: unknown
+Section: sound
Priority: optional
Maintainer: Ralph Ronnquist <ralph.ronnquist@gmail.com>
Build-Depends: debhelper-compat (= 13)
Package: alsa-dispatcher
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, newlisp
Description: ALSA priority dispatcher for occasional playback endpoints.
This is an ALSA utility that handles dispatch of audio playback via a
priority list of possible endpoints. The dispatch logic works through
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-
%:
dh $@
+#-# The following is some useful documentation that I want to keep
+#-# exampe for override targets generated by dh_make
+#-# override_dh_auto_configure:
+#-# dh_auto_configure -- \
+#-# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
-# dh_make generated override targets
-# This is example for Cmake (See https://bugs.debian.org/641051 )
-#override_dh_auto_configure:
-# dh_auto_configure -- \
-# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)