File: Makefile

package info (click to toggle)
norwegian 2.0.10-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 26,296 kB
  • ctags: 178
  • sloc: perl: 2,665; makefile: 1,724; sh: 206
file content (74 lines) | stat: -rw-r--r-- 1,888 bytes parent folder | download | duplicates (7)
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
66
67
68
69
70
71
72
73
74
# Simple Makefile to translate a TeX readable hyphenation patterns
# file into a Patgen (and human) readable file.

all: nohyph1.txt nohyph2.txt nohyphsimen.txt ukhyph.txt

%.txt: %.tex
	cat $< \
	  | sed -e '1,/^[ 	]*\\patterns/ D' \
                -e 's/\^\^e0//g' \
		-e 's/\^\^e1//g' \
		-e 's/\^\^e2//g' \
		-e 's/\^\^e3//g' \
		-e 's/\^\^e4//g' \
		-e 's/\^\^e5//g' \
		-e 's/\^\^e6//g' \
		-e 's/\^\^e7//g' \
		-e 's/\^\^e8//g' \
		-e 's/\^\^e9//g' \
		-e 's/\^\^ea//g' \
		-e 's/\^\^eb//g' \
		-e 's/\^\^ec//g' \
		-e 's/\^\^ed//g' \
		-e 's/\^\^ee//g' \
		-e 's/\^\^ef//g' \
		-e 's/\^\^f0//g' \
		-e 's/\^\^f1//g' \
		-e 's/\^\^f2//g' \
		-e 's/\^\^f3//g' \
		-e 's/\^\^f4//g' \
		-e 's/\^\^f5//g' \
		-e 's/\^\^f6//g' \
		-e 's/\^\^f7//g' \
		-e 's/\^\^f8//g' \
		-e 's/\^\^f9//g' \
		-e 's/\^\^fa//g' \
		-e 's/\^\^fb//g' \
		-e 's/\^\^fc//g' \
		-e 's/\^\^fd//g' \
		-e 's/\^\^fe//g' \
		-e 's/\^\^ff//g' \
		-e '/\}/,$$ D' \
	  > $@

clean:
	-rm -f nohyph1.txt nohyph2.txt nohyphsimen.txt ukhyph.txt

SUBDIRS     :=
EXTRA_DIST  := Makefile
DISTFILES   := $(EXTRA_DIST)
srcdir      := .
top_distdir := ../$(PACKAGE)-$(VERSION)
distdir     := $(top_distdir)/patterns/oldpatterns

distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  if test -d $$d/$$file; then \
	    cp -pr $$d/$$file $(distdir)/$$file; \
	  else \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file || :; \
	  fi; \
	done
	for subdir in $(SUBDIRS); do \
	  if test "$$subdir" = .; then :; else \
	    test -d $(distdir)/$$subdir \
	    || mkdir $(distdir)/$$subdir \
	    || exit 1; \
	    chmod 777 $(distdir)/$$subdir; \
	    (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
	      || exit 1; \
	  fi; \
	done