AUTOMAKE_OPTIONS = 1.3 foreign
SUBDIRS = hdsploader mixartloader pcxhrloader usx2yloader vxloader echoaudio \
- asihpi emi_26_62 emu korg1212 maestro3 sb16 wavefront ymfpci
+ asihpi emi_26_62 emu korg1212 maestro3 multisound sb16 wavefront ymfpci
EXTRA_DIST = depcomp
--- /dev/null
+# # Process this file with automake to produce Makefile.in.
+
+if USE_HOTPLUG
+hotplugfwdir = @HOTPLUGFWDIR@/turtlebeach
+
+# Create links to the actual firmware files in /etc/sound
+install-data-hook:
+ $(INSTALL) -d $(DESTDIR)$(hotplugfwdir)
+ cd $(DESTDIR)$(hotplugfwdir) && \
+ rm -f msndinit.bin && \
+ $(LN_S) /etc/sound/msndinit.bin msndinit.bin
+ cd $(DESTDIR)$(hotplugfwdir) && \
+ rm -f msndperm.bin && \
+ $(LN_S) /etc/sound/msndperm.bin msndperm.bin
+ cd $(DESTDIR)$(hotplugfwdir) && \
+ rm -f pndspini.bin && \
+ $(LN_S) /etc/sound/pndspini.bin pndspini.bin
+ cd $(DESTDIR)$(hotplugfwdir) && \
+ rm -f pndsperm.bin && \
+ $(LN_S) /etc/sound/pndsperm.bin pndsperm.bin
+
+uninstall-hook:
+ rm -f $(DESTDIR)$(hotplugfwdir)/msndinit.bin
+ rm -f $(DESTDIR)$(hotplugfwdir)/msndperm.bin
+ rm -f $(DESTDIR)$(hotplugfwdir)/pndspini.bin
+ rm -f $(DESTDIR)$(hotplugfwdir)/pndsperm.bin
+
+endif
+