-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.in
62 lines (48 loc) · 2.78 KB
/
Makefile.in
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
PREFIX=@prefix@
DEPS=lib/FSharp.Compiler.Editor.dll \
lib/Options.dll
CORE_SOURCES=FSharpRefactor/Ast.fs \
FSharpRefactor/RangeAnalysis.fs \
FSharpRefactor/ScopeTrees.fs \
FSharpRefactor/Project.fs \
FSharpRefactor/Scoping.fs \
FSharpRefactor/CodeTransforms.fs \
FSharpRefactor/ValidityChecking.fs \
FSharpRefactor/Refactoring.fs \
FSharpRefactor/Rename.fs \
FSharpRefactor/ExtractFunction.fs \
FSharpRefactor/AddArgument.fs \
FSharpRefactor/AssemblyInfo.fs
CLI_SOURCES=FSharpRefactor.CommandLine/CommandLine.fs \
FSharpRefactor.CommandLine/AssemblyInfo.fs
TESTS=FSharpRefactorTests/EngineTests.fs \
FSharpRefactorTests/RenameTests.fs \
FSharpRefactorTests/ExtractFunctionTests.fs \
FSharpRefactorTests/AddArgumentTests.fs \
FSharpRefactorTests/ScopingTests.fs \
FSharpRefactorTests/ProjectTests.fs
all: bin/FSharpRefactor.dll bin/FSharpRefactor.CommandLine.exe
bin/FSharpRefactor.dll: $(CORE_SOURCES) lib/FSharp.Compiler.Editor.dll FSharpRefactor/FSharpRefactor.fsproj
xbuild FSharpRefactor/FSharpRefactor.fsproj
cp FSharpRefactor/bin/Debug/FSharpRefactor.dll bin
bin/FSharpRefactor.CommandLine.exe: $(CLI_SOURCES) lib/Options.dll FSharpRefactor.CommandLine/FSharpRefactor.CommandLine.fsproj
xbuild FSharpRefactor.CommandLine/FSharpRefactor.CommandLine.fsproj
cp FSharpRefactor.CommandLine/bin/Debug/FSharpRefactor.CommandLine.exe bin
bin/FSharpRefactorTests.dll: $(TESTS) FSharpRefactorTests/FSharpRefactorTests.fsproj
xbuild FSharpRefactorTests/FSharpRefactorTests.fsproj
cp FSharpRefactorTests/bin/Debug/FSharpRefactorTests.dll bin
unit-tests: bin/FSharpRefactorTests.dll
mono /usr/lib/nunit/nunit-console.exe -noresult bin/FSharpRefactorTests.dll
cli-tests: bin/FSharpRefactor.dll bin/FSharpRefactor.CommandLine.exe FSharpRefactorTests/command-line-tests.sh
export MONO_PATH=lib; FSharpRefactorTests/command-line-tests.sh
tests: unit-tests cli-tests
clean: FSharpRefactor/FSharpRefactor.fsproj FSharpRefactor.CommandLine/FSharpRefactor.CommandLine.fsproj FSharpRefactorTests/FSharpRefactorTests.fsproj
xbuild /target:clean FSharpRefactor/FSharpRefactor.fsproj
xbuild /target:clean FSharpRefactor.CommandLine/FSharpRefactor.CommandLine.fsproj
xbuild /target:clean FSharpRefactorTests/FSharpRefactorTests.fsproj
install: $(DEPS) bin/FSharpRefactor.dll bin/FSharprefactor.CommandLine.exe bin/fsharp-refactor
sed "s|@install_prefix@|$(PREFIX)|" bin/fsharp-refactor > bin/fsharp-refactor.local
mv bin/fsharp-refactor.local $(PREFIX)/bin/fsharp-refactor
-mkdir $(PREFIX)/lib/fsharp-refactor
cp $(DEPS) bin/FSharpRefactor.dll bin/FSharprefactor.CommandLine.exe $(PREFIX)/lib/fsharp-refactor
chmod +x $(PREFIX)/bin/fsharp-refactor