-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
78 lines (64 loc) · 3.61 KB
/
Makefile
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
75
76
77
VERSION = 1.2.0
INSTALL_PATH?=/usr/local
DOLLAR=$$
all:monobins
# Mono compiled binaries
monobins:../src/BetterPoEditor/bin/Release/BetterPoEditor.exe ../src/NetSpell.DictionaryBuild/bin/Release/NetSpell.DictionaryBuild.exe
../src/Jayrock.Json/bin/Release/Jayrock.Json.dll:
@./build-project Jayrock.Json
../src/NetSpell.SpellChecker/bin/Release/NetSpell.SpellChecker.dll:
@./build-project NetSpell.SpellChecker
../src/NetSpell.DictionaryBuild/bin/Release/NetSpell.DictionaryBuild.exe:../src/NetSpell.SpellChecker/bin/Release/NetSpell.SpellChecker.dll
@./build-project NetSpell.DictionaryBuild
../src/TidyNet/bin/Release/TidyNet.dll:
@./build-project TidyNet
../src/BetterPoEditor/bin/Release/BetterPoEditor.exe:../src/Jayrock.Json/bin/Release/Jayrock.Json.dll ../src/NetSpell.SpellChecker/bin/Release/NetSpell.SpellChecker.dll ../src/TidyNet/bin/Release/TidyNet.dll
@./build-project BetterPoEditor
install:monobins
@echo -n "Installing library files in ${INSTALL_PATH}/lib/betterpoeditor... "
@if [ ! -d ${INSTALL_PATH}/lib/betterpoeditor ]; then mkdir ${INSTALL_PATH}/lib/betterpoeditor; fi
@cp ./run-mono-exe ${INSTALL_PATH}/lib/betterpoeditor
@cp ../src/Jayrock.Json/bin/Release/Jayrock.Json.dll ${INSTALL_PATH}/lib/betterpoeditor
@cp ../src/NetSpell.SpellChecker/bin/Release/NetSpell.SpellChecker.dll ${INSTALL_PATH}/lib/betterpoeditor
@cp ../src/NetSpell.DictionaryBuild/bin/Release/NetSpell.DictionaryBuild.exe ${INSTALL_PATH}/lib/betterpoeditor
@cp ../src/TidyNet/bin/Release/TidyNet.dll ${INSTALL_PATH}/lib/betterpoeditor
@cp ../src/BetterPoEditor/bin/Release/BetterPoEditor.exe ${INSTALL_PATH}/lib/betterpoeditor
@cp --recursive ../src/BetterPoEditor/dictionaries ${INSTALL_PATH}/lib/betterpoeditor
@cp --recursive ../contribs ${INSTALL_PATH}/lib/betterpoeditor
@echo "done."
@echo "Creating launch scripts in ${INSTALL_PATH}/bin:"
@echo -n "\tbetterpoeditor... "
@echo -n "#!/bin/sh\n\`dirname \\\`readlink -f " >${INSTALL_PATH}/bin/betterpoeditor
@echo -n ${DOLLAR} >>${INSTALL_PATH}/bin/betterpoeditor
@echo -n "0\\\`\`/../lib/betterpoeditor/run-mono-exe BetterPoEditor.exe \"" >>${INSTALL_PATH}/bin/betterpoeditor
@echo -n ${DOLLAR} >>${INSTALL_PATH}/bin/betterpoeditor
@echo "1\"" >>${INSTALL_PATH}/bin/betterpoeditor
@chmod a+x ${INSTALL_PATH}/bin/betterpoeditor
@echo "done."
@echo -n "\tbetterpoeditor-dictionarybuild... "
@echo -n "#!/bin/sh\n\`dirname \\\`readlink -f " >${INSTALL_PATH}/bin/betterpoeditor-dictionarybuild
@echo -n ${DOLLAR} >>${INSTALL_PATH}/bin/betterpoeditor-dictionarybuild
@echo "0\\\`\`/../lib/betterpoeditor/run-mono-exe NetSpell.DictionaryBuild.exe " >>${INSTALL_PATH}/bin/betterpoeditor-dictionarybuild
@chmod a+x ${INSTALL_PATH}/bin/betterpoeditor-dictionarybuild
@echo "done."
uninstall:
@- $(RM) ${INSTALL_PATH}/bin/betterpoeditor-dictionarybuild
@- $(RM) ${INSTALL_PATH}/bin/betterpoeditor
@- $(RM) --recursive ${INSTALL_PATH}/lib/betterpoeditor
clean:
@- $(RM) ./build.log
@- $(RM) --recursive ../src/BetterPoEditor/bin
@- $(RM) --recursive ../src/TidyNet/bin
@- $(RM) --recursive ../src/NetSpell.DictionaryBuild/bin
@- $(RM) --recursive ../src/NetSpell.SpellChecker/bin
@- $(RM) --recursive ../src/Jayrock.Json/bin
distclean:clean
help:
@echo "Available make options:"
@echo "make help : shows this message"
@echo "make : compiles everything"
@echo "make install : installs the compiled things into the system"
@echo "make uninstall: removes the compiled things from the system"
@echo "make clean : removes compiled intermediary files (resets the source code"
@echo " to its initial state)"
.PHONY:all clean distclean monobins install uninstall help