Add Makefile and wrapper program for installed execution
This commit is contained in:
Родитель
c9c1495328
Коммит
7309eda179
|
@ -0,0 +1,22 @@
|
|||
PREFIX := /usr/local
|
||||
LIBDIR := $(PREFIX)/lib
|
||||
BINDIR := $(PREFIX)/bin
|
||||
|
||||
INSTALL_FILES = \
|
||||
Mono.Cecil.dll \
|
||||
Mono.Cecil.Mdb.dll \
|
||||
Mono.Cecil.Pdb.dll \
|
||||
Vernacular.exe \
|
||||
Vernacular.exe.mdb
|
||||
|
||||
all:
|
||||
xbuild Vernacular.csproj
|
||||
|
||||
install:
|
||||
mkdir -p "$(LIBDIR)/vernacular"
|
||||
mkdir -p "$(BINDIR)"
|
||||
for file in $(INSTALL_FILES); do \
|
||||
install -m 0755 "bin/Debug/$$file" "$(LIBDIR)/vernacular"; \
|
||||
done
|
||||
sed 's|@libdir@|$(LIBDIR)|' < vernacular.in > "$(BINDIR)/vernacular"
|
||||
chmod 0755 "$(BINDIR)/vernacular"
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
mono @libdir@/vernacular/Vernacular.exe "$@"
|
Загрузка…
Ссылка в новой задаче