File: Makefile

package info (click to toggle)
bsdgames-nonfree 2.1-3
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 1,052 kB
  • ctags: 997
  • sloc: ansic: 12,906; sh: 342; makefile: 214
file content (65 lines) | stat: -rw-r--r-- 2,133 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Makefile - makefile for boggle

include ../Makeconfig

# DICTSRC is the dictionary that will be used to construct the word list used
# by bog.
DICTSRC=../hangman/words

all:	dictionary dictindex boggle/boggle

dictionary:	mkdict/mkdict
	mkdict/mkdict <$(DICTSRC) >dictionary

mkdict/mkdict:	mkdict/mkdict.c
	cd mkdict && $(MAKE) mkdict

dictindex:	mkindex/mkindex dictionary
	mkindex/mkindex <dictionary >dictindex

mkindex/mkindex:	mkindex/mkindex.c
	cd mkindex && $(MAKE) mkindex

boggle/boggle:	boggle/bog.c boggle/bog.h boggle/extern.h boggle/help.c boggle/mach.c boggle/prtable.c boggle/timer.c boggle/word.c
	cd boggle && $(MAKE) boggle

install:
	@set -e; for i in boggle; do \
	    echo "Making install in $$i"; \
	    cd $$i; \
	    $(MAKE) install $(DEFS_TO_PASS); \
	    cd ..; \
	done

clean:
	@set -e; for i in boggle mkdict mkindex; do \
	    echo "Making clean in $$i"; \
	    cd $$i; \
	    $(MAKE) clean; \
	    cd ..; \
	done
	rm -f dictionary dictindex patch.tmp README.linux.old

# This target is for maintainer use to update the patch at the end
# of README.linux.
linux-patch:	
	sed /=====/q README.linux >README.linux.new
	: >patch.tmp
	@echo "Error 1 (ignored) is just when differences are found."
	@echo "Error 2 means trouble."
	-diff -u ../../other/bog/README README >>patch.tmp
	-diff -u ../../other/bog/bog.man boggle/boggle.6 >>patch.tmp
	-diff -u ../../other/bog/bog.c boggle/bog.c >>patch.tmp
	-diff -u ../../other/bog/bog.h boggle/bog.h.in >>patch.tmp
	-diff -u ../../other/bog/help.c boggle/help.c >>patch.tmp
	-diff -u ../../other/bog/helpfile boggle/helpfile >>patch.tmp
	-diff -u ../../other/bog/mach.c boggle/mach.c >>patch.tmp
	-diff -u ../../other/bog/mkdict.c mkdict/mkdict.c >>patch.tmp
	-diff -u ../../other/bog/mkindex.c mkindex/mkindex.c >>patch.tmp
	-diff -u ../../other/bog/prtable.c boggle/prtable.c >>patch.tmp
	-diff -u ../../other/bog/timer.c boggle/timer.c >>patch.tmp
	-diff -u ../../other/bog/word.c boggle/word.c >>patch.tmp
	gzip -9 <patch.tmp |uuencode bog-patch.gz.uue >>README.linux.new
	rm -f patch.tmp
	mv README.linux README.linux.old
	mv README.linux.new README.linux