~ubuntu-branches/ubuntu/precise/typespeed/precise

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Dafydd Harries
  • Date: 2007-12-07 05:14:13 UTC
  • mto: (4.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20071207051413-x6wtxujyiabvyuwu
Tags: upstream-0.6.4
ImportĀ upstreamĀ versionĀ 0.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CC = gcc
 
2
AM_CFLAGS = -Wall -W -pedantic -std=c99
 
3
 
 
4
HIGHFILE = typespeed.score
 
5
WORDDIR = $(datadir)/@PACKAGE@/words
 
6
RULEDIR = $(datadir)/@PACKAGE@/rules
 
7
 
 
8
bin_PROGRAMS = typespeed
 
9
noinst_PROGRAMS = convert
 
10
 
 
11
highscore_DATA = typespeed.score
 
12
 
 
13
convert_SOURCES = convert.c
 
14
 
 
15
typespeed_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -DTVERSION=\"v$(VERSION)\" \
 
16
        -DCONFIGFILE=\"$(sysconfdir)/typespeedrc\" \
 
17
        -DHIGHFILE=\"$(highscoredir)/$(HIGHFILE)\" \
 
18
        -DWORDDIR=\"$(WORDDIR)\" -DRULEDIR=\"$(RULEDIR)\"
 
19
typespeed_LDADD = @LIBINTL@
 
20
typespeed_SOURCES = file.c gettext.h menu.c misc.c network.c pathnames.h \
 
21
            typespeed.c typespeed.h
 
22
 
 
23
typespeed.score:
 
24
        @touch typespeed.score
 
25
 
 
26
install-data-hook:
 
27
        -chgrp games $(DESTDIR)$(highscoredir)/$(HIGHFILE) && \
 
28
        chmod g+w $(DESTDIR)$(highscoredir)/$(HIGHFILE) && \
 
29
        chmod o-rwx $(DESTDIR)$(highscoredir)/$(HIGHFILE)
 
30
 
 
31
install-exec-hook:
 
32
        -chgrp games $(DESTDIR)$(bindir)/typespeed && \
 
33
        chmod g+s $(DESTDIR)$(bindir)/typespeed