-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathMakefile
38 lines (30 loc) · 1005 Bytes
/
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
PREFIX := /usr/local
LIBDIR := $(PREFIX)/lib
BINDIR := $(PREFIX)/bin
INSTALL_FILES = \
Mono.Cecil.dll \
Mono.Cecil.Mdb.dll \
Mono.Cecil.Pdb.dll \
Vernacular.Catalog.dll \
Vernacular.Catalog.dll.mdb \
Vernacular.Potato.dll \
Vernacular.Potato.dll.mdb \
Vernacular.exe \
Vernacular.exe.mdb
NUNIT_CONSOLE = /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.0/nunit-console.exe
all: vernacular
vernacular:
xbuild Vernacular.sln
clean:
find . -type d -name bin -or -name obj -maxdepth 2 -exec echo rm -rf {} \; -exec rm -rf {} \;
test: clean vernacular
mono --debug $(NUNIT_CONSOLE) -labels -nologo Vernacular.Test/bin/Debug/Vernacular.Test.dll
install:
mkdir -p "$(LIBDIR)/vernacular"
mkdir -p "$(BINDIR)"
for file in $(INSTALL_FILES); do \
install -m 0755 "Vernacular.Tool/bin/Debug/$$file" "$(LIBDIR)/vernacular"; \
done
sed 's|@libdir@|$(LIBDIR)|' < vernacular.in > "$(BINDIR)/vernacular"
chmod 0755 "$(BINDIR)/vernacular"
.PHONY: all vernacular test install clean