forked from pjheslin/diogenes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk.morpheus-old
32 lines (25 loc) · 1.16 KB
/
mk.morpheus-old
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
# This is an old but known-good version of Morpheus. It does not
# compile on OS X. It also does not compile with recent versions of
# GCC, but GCC version 6 works on Linux.
include mk.common
MORPHEUS = $(BUILD)/morpheus-old
MORPHEUSCOMMIT = 9f793a0725cb8e17bbdc5506d75c501703e2b986
MORPHEUSREPO = https://github.com/pjheslin/morpheus-old
all: $(MORPHEUS)/.git/HEAD $(BUILD)/lat.morph $(BUILD)/grc.morph
$(MORPHEUS)/.git/HEAD:
rm -rf $(MORPHEUS)
mkdir -p $(BUILD)
cd $(BUILD) && git clone $(MORPHEUSREPO)
cd $(MORPHEUS) && git checkout $(MORPHEUSCOMMIT)
cd $(MORPHEUS)/src && make && make install
# Re-making the Greek stemlib causes cruncher to segfault, so stick with what is distributed.
# cd $(MORPHEUS)/stemlib/Latin && PATH=$$PATH:../../bin MORPHLIB=.. make
# cd $(MORPHEUS)/stemlib/Greek && PATH=$$PATH:../../bin MORPHLIB=.. make
$(BUILD)/lat.morph: $(BUILD)/lat.words $(MORPHEUS)/.git/HEAD
MORPHLIB=$(MORPHEUS)/stemlib $(MORPHEUS)/bin/cruncher -L $(BUILD)/lat
$(BUILD)/grc.morph: $(BUILD)/grc.words $(MORPHEUS)/.git/HEAD
MORPHLIB=$(MORPHEUS)/stemlib $(MORPHEUS)/bin/cruncher $(BUILD)/grc
clean:
rm -rf $(MORPHEUS)
rm -f $(BUILD)/lat.morph
rm -f $(BUILD)/grc.morph