File: Makefile

package info (click to toggle)
scrabble 1.8-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,868 kB
  • ctags: 30
  • sloc: perl: 964; makefile: 54
file content (33 lines) | stat: -rw-r--r-- 931 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
###############################################################################
#
#  Scrabble Makefile (all it does is install)
#
###############################################################################

prefix	= /usr/local

bindir	= $(prefix)/games
datadir	= $(prefix)/share
mandir	= $(datadir)/man
statedir= $(prefix)/scrabble

varprefix=$(prefix)


install:
	mkdir -p $(bindir)
	mkdir -p $(datadir)/dict
	mkdir -p $(mandir)/man6
	install -m755 scrabble $(bindir)
	$(bindir)/scrabble --filter-words word-frequencies wordlists/* >$(datadir)/dict/scrabble-english
	cat "wordlists/ZZ - Deleted Words.txt" >>$(datadir)/dict/scrabble-english
	chmod 644 $(datadir)/dict/scrabble-english
	-pod2man scrabble >$(mandir)/man6/scrabble.6
	-chmod 644 $(mandir)/man6/scrabble.6

disabled:
	install -m2755 -ggames scrabble $(bindir)
	mkdir -p $(statedir)
	touch $(statedir)/english
	chgrp games $(statedir)/*
	chmod  664  $(statedir)/*