~ubuntu-branches/ubuntu/quantal/morse/quantal

« back to all changes in this revision

Viewing changes to .pc/02morseALSA/Makefile

  • Committer: Package Import Robot
  • Author(s): Bhavani Shankar
  • Date: 2011-11-13 20:49:00 UTC
  • mfrom: (7.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20111113204900-u1p6ze9eu4bwrfxx
Tags: 2.4-2ubuntu1
* Merge from debian testing. Remaining changes:
  - 02asneeded: new patch, fixes FTBFS Thanks to John Nogatch.
    (Forwarded as debian bug no 632436) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Select your audio output device.  Current choices are:
 
2
#
 
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
 
8
#
 
9
# Running on Linux:
 
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.
 
13
#
 
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.
 
20
#
 
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
 
23
# to the authors!
 
24
#
 
25
#DEVICE = X11
 
26
#DEVICE = Linux
 
27
#DEVICE = OSS
 
28
#DEVICE = ALSA
 
29
DEVICE = PA
 
30
 
 
31
VERSION=2.4
 
32
 
 
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
 
38
 
 
39
default:
 
40
        make all
 
41
 
 
42
all: morse QSO morse.1 QSO.1
 
43
 
 
44
install: all
 
45
        install morse.d/morsePA $(DESTDIR)/usr/bin/morse
 
46
        install morse.d/morseLinux $(DESTDIR)/usr/bin
 
47
        install morse.d/morseX11 $(DESTDIR)/usr/bin
 
48
        install qso.d/QSO $(DESTDIR)/usr/bin
 
49
 
 
50
morse:
 
51
        cd morse.d && make DEVICE=${DEVICE}
 
52
        ln morse.d/morse ./morse
 
53
 
 
54
QSO:
 
55
        cd qso.d && make
 
56
        ln qso.d/QSO ./QSO
 
57
 
 
58
#
 
59
# "Jocks find quartz glyph, vex BMW." is my attempt to win Stephen J. Gould's
 
60
# prize (a copy of all his books) for the first person who can come up with a
 
61
# "perfect pangram": a meaningful sentence consisting entirely of common
 
62
# English words, with no abbreviations or proper names, that contains each
 
63
# letter exactly once. He rejected it because it contains "BMW", alas, but
 
64
# he did say it's the closest he's seen so far. - Joe Dellinger
 
65
#
 
66
testmorse:      morse QSO
 
67
        (cat test_input; qso.d/QSO) | ./morse -w 24 -l -e
 
68
 
 
69
testqso:        morse QSO
 
70
        qso.d/QSO | ./morse -w 20 -l -e
 
71
 
 
72
all:    morse QSO
 
73
 
 
74
clean:
 
75
        rm -f morse QSO *.1 *.html SHIPPER.*
 
76
        cd morse.d; make clean
 
77
        cd qso.d; make clean
 
78
 
 
79
pristine: clean
 
80
        rm -f $(MANPAGES) morse.html
 
81
 
 
82
morse.1 QSO.1: morse.xml
 
83
        xmlto man morse.xml
 
84
 
 
85
morse.html: morse.xml
 
86
        xmlto xhtml-nochunks morse.xml
 
87
 
 
88
morse-$(VERSION).tar.gz: $(ALL)
 
89
        @ls $(ALL) | sed s:^:morse-$(VERSION)/: >MANIFEST
 
90
        @(cd ..; ln -s morse-classic morse-$(VERSION))
 
91
        (cd ..; tar -czf morse-classic/morse-$(VERSION).tar.gz `cat morse-classic/MANIFEST`)
 
92
        @(cd ..; rm morse-$(VERSION))
 
93
 
 
94
dist: morse-$(VERSION).tar.gz
 
95
 
 
96
release: morse-$(VERSION).tar.gz morse.html
 
97
        shipper -u -m -t; make clean