~ubuntu-branches/ubuntu/oneiric/morse/oneiric

« back to all changes in this revision

Viewing changes to .pc/01makefile/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Nanakos Chrysostomos
  • Date: 2011-06-17 13:57:00 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110617135700-b0zzrwr018nhyee6
Tags: 2.4-1
New upstream release

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 testmorse
 
41
 
 
42
all: morse QSO morse.1 QSO.1
 
43
 
 
44
morse:
 
45
        cd morse.d && make DEVICE=${DEVICE}
 
46
        ln morse.d/morse ./morse
 
47
 
 
48
QSO:
 
49
        cd qso.d && make
 
50
        ln qso.d/QSO ./QSO
 
51
 
 
52
#
 
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
 
59
#
 
60
testmorse:      morse QSO
 
61
        (cat test_input; qso.d/QSO) | ./morse -w 24 -l -e
 
62
 
 
63
testqso:        morse QSO
 
64
        qso.d/QSO | ./morse -w 20 -l -e
 
65
 
 
66
all:    morse QSO
 
67
 
 
68
clean:
 
69
        rm -f morse QSO *.1 *.html SHIPPER.*
 
70
        cd morse.d; make clean
 
71
        cd qso.d; make clean
 
72
 
 
73
pristine: clean
 
74
        rm -f $(MANPAGES) morse.html
 
75
 
 
76
morse.1 QSO.1: morse.xml
 
77
        xmlto man morse.xml
 
78
 
 
79
morse.html: morse.xml
 
80
        xmlto xhtml-nochunks morse.xml
 
81
 
 
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))
 
87
 
 
88
dist: morse-$(VERSION).tar.gz
 
89
 
 
90
release: morse-$(VERSION).tar.gz morse.html
 
91
        shipper -u -m -t; make clean