File: Makefile

package info (click to toggle)
skkdic 20011121-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 12,436 kB
  • ctags: 16
  • sloc: asm: 3,307; makefile: 158; sh: 82; awk: 27
file content (70 lines) | stat: -rw-r--r-- 2,244 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
66
67
68
69
70
# Makefile: makefile for SKK Dictionaries.
#
# Maintainer: SKK Development Team <skk@ring.gr.jp>
# Version: $Id: Makefile,v 1.14 2001/07/31 23:53:22 minakaji Exp $
# Last Modified: $Date: 2001/07/31 23:53:22 $

GAWK      = gawk
BZIP2     = bzip2 -9
DATE	  = date
GZIP      = gzip -9
MD5	  = md5
RM	  = /bin/rm -f
TAR	  = tar
#TODAY     = `$(DATE) '+%Y%m%d'`
ZIP       = zip
SRCS	  = SKK-JISYO.L SKK-JISYO.M SKK-JISYO.S SKK-JISYO.JIS2 SKK-JISYO.pubdic+ SKK-JISYO.wrong \
            SKK-JISYO.L.unannotated SKK-JISYO.wrong.annotated SKK-JISYO.okinawa SKK-JISYO.jinmei \
	    SKK-JISYO.law SKK-JISYO.mazegaki 
ZIPDIC_DIR  = ./zipcode

clean:
	$(RM) *.gz* *.bz2* *.zip* *~ `find . -name '*~'` `find . -name '.*~'` `find . -name '.#*'` \
	*.unannotated SKK-JISYO.wrong 

archive: zip gzip bzip2

unannotated: SKK-JISYO.L.unannotated SKK-JISYO.wrong

SKK-JISYO.L.unannotated:
	$(GAWK) -f unannotation.awk SKK-JISYO.L > SKK-JISYO.L.unannotated

SKK-JISYO.wrong:
	$(GAWK) -f unannotation.awk SKK-JISYO.wrong.annotated > SKK-JISYO.wrong

zip: clean $(SRCS)
	for file in $(SRCS); do \
	  $(ZIP) $$file.zip $$file ;\
	  $(MD5) $$file.zip >$$file.zip.md5; \
	done 
	$(ZIP) SKK-JISYO.edict.zip SKK-JISYO.edict edict_doc.txt
	$(ZIP) -r zipcode.zip $(ZIPDIC_DIR) -x@./skk.ex
#	$(ZIP) -r zipcode.zip $(ZIPDIC_DIR)
	$(MD5) zipcode.zip >zipcode.zip.md5

gzip: clean $(SRCS)
	for file in $(SRCS); do \
	  $(GZIP) -fc $$file >$$file.gz ;\
	  $(MD5) $$file.gz >$$file.gz.md5; \
	done 
	$(TAR) cvpf SKK-JISYO.edict.tar SKK-JISYO.edict edict_doc.txt
	$(GZIP) -f SKK-JISYO.edict.tar
	$(MD5) SKK-JISYO.edict.tar.gz > SKK-JISYO.edict.tar.gz.md5
	$(TAR) cvzpf zipcode.tar.gz ./zipcode --exclude-from=./skk.ex
#	$(TAR) cvzpf zipcode.tar.gz ./zipcode
	$(MD5) zipcode.tar.gz >zipcode.tar.gz.md5

bzip2: clean $(SRCS)
	for file in $(SRCS); do \
	  $(BZIP2) -fc $$file >$$file.bz2 ;\
	  $(MD5) $$file.bz2 >$$file.bz2.md5; \
	done 
	$(TAR) cvpf SKK-JISYO.edict.tar SKK-JISYO.edict edict_doc.txt
	$(BZIP2) -f SKK-JISYO.edict.tar
	$(MD5) SKK-JISYO.edict.tar.bz2 > SKK-JISYO.edict.tar.bz2.md5
#	$(TAR) cvpf zipcode.tar ./zipcode --exclude-from=./skk.ex
	$(TAR) cvpf zipcode.tar ./zipcode
	$(BZIP2) -f zipcode.tar 
	$(MD5) zipcode.tar.bz2 >zipcode.tar.bz2.md5

# end of Makefile.