forked from nickjwhite/diogenes
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmk.morpheus-broken
35 lines (26 loc) · 1.17 KB
/
mk.morpheus-broken
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
# This downloads and uses the current version of Morpheus, which gives
# significantly buggy output. For now, use mk.morpheus-old instead.
include mk.common
MORPHEUS = $(BUILD)/morpheus
MORPHEUSCOMMIT = 64c658c8b3462ca77000d931c1e99388c9ab87b6
MORPHEUSREPO = https://github.com/PerseusDL/morpheus
# llvm-compilev2 branch
#MORPHEUSREPO = https://github.com/nickjwhite/morpheus.git
#MORPHEUSCOMMIT = e9e05b80ebfab1adc557727280a31ca0e53cc4ba
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
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