File: Makefile

package info (click to toggle)
kdrill 6.5deb2-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,340 kB
  • sloc: ansic: 7,636; makefile: 47
file content (40 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (6)
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

# this is the make file for the "makedic" subdir, that really
# makes "makeedict" now.

all:	makeedict makedic

makeedict:	makeedict.c
	gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ makeedict.c

#This old version is just kept here for posterity's sake
#It's doubtful you will want to make a new kanjidic entry.
#but if you do, it's here
makedic:	makedic.c
	gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ makedic.c

DICTS=hira.edic hiraplus.edic kata.edic kataplus.edic fullkatahira.edic

KDICS=hira.kdic hiraplus.kdic kata.kdic kataplus.kdic fullkatahira.kdic

%.edic:	infile.%
	./makeedict $@ < $<

%.kdic:	infile.%
	./makedic $@ < $<

dictionaries:	makeedict makedic $(DICTS)

kdics:	$(KDICS)

clean:
	rm -f makeedict makedic

fullkatahira.edic:	hiraplus.edic kataplus.edic
	cat hiraplus.edic kataplus.edic >fullkatahira.edic

fullkatahira.kdic:	hiraplus.kdic kataplus.kdic
	cat hiraplus.kdic kataplus.kdic >fullkatahira.kdic
	

#This is still missing combos, like "shi-ya". but oh well.