1
# Select your audio output device. Current choices are:
3
# X11: The X11 window system.
4
# Linux: IBM PC Console running Linux.
5
# OSS: Open Sound System /dev/dsp device.
6
# PA: PulseAudio using the pulse-simple client API.
7
# ALSA: Advanced Linux Sound Architecture
10
# Many Linux laptops seem to have console speakers that are unreliable
11
# for various hardware and software reasons. You may be better off
12
# using morseALSA or morseOSS than morseLinux.
14
# Running on Mac OS X:
15
# (1) Use X11. The user must, as with any X11 client, set the DISPLAY
16
# variable, and have the X server running. Finally, the X11 output
17
# preferences dialog should have "Use system alert effect" unchecked;
18
# otherwise, the system alert (settable, but unlikely to be useful to
19
# copy code in any event) will be used instead of the X beep.
21
# Adding a new device is as simple as creating a new implementation of the
22
# beep.h interface. See beep*.c for examples. Please send any additions
33
MANPAGES = morse.1 QSO.1
34
DOCS = README HISTORY COPYING morse.xml $(MANPAGES)
35
ALL= $(DOCS) Makefile $(SOURCES) test_input \
36
morse.d/*.[ch] morse.d/Makefile \
37
qso.d/*.[ch] qso.d/Makefile
42
all: morse QSO morse.1 QSO.1
45
cd morse.d && make DEVICE=${DEVICE}
46
ln morse.d/morse ./morse
53
# "Jocks find quartz glyph, vex BMW." is my attempt to win Stephen J. Gould's
54
# prize (a copy of all his books) for the first person who can come up with a
55
# "perfect pangram": a meaningful sentence consisting entirely of common
56
# English words, with no abbreviations or proper names, that contains each
57
# letter exactly once. He rejected it because it contains "BMW", alas, but
58
# he did say it's the closest he's seen so far. - Joe Dellinger
61
(cat test_input; qso.d/QSO) | ./morse -w 24 -l -e
64
qso.d/QSO | ./morse -w 20 -l -e
69
rm -f morse QSO *.1 *.html SHIPPER.*
70
cd morse.d; make clean
74
rm -f $(MANPAGES) morse.html
76
morse.1 QSO.1: morse.xml
80
xmlto xhtml-nochunks morse.xml
82
morse-$(VERSION).tar.gz: $(ALL)
83
@ls $(ALL) | sed s:^:morse-$(VERSION)/: >MANIFEST
84
@(cd ..; ln -s morse-classic morse-$(VERSION))
85
(cd ..; tar -czf morse-classic/morse-$(VERSION).tar.gz `cat morse-classic/MANIFEST`)
86
@(cd ..; rm morse-$(VERSION))
88
dist: morse-$(VERSION).tar.gz
90
release: morse-$(VERSION).tar.gz morse.html
91
shipper -u -m -t; make clean