Simplify install target.
[tomboy-plaintext-export-addin:codegnomes-tomboy-plaintext-export-addin.git] / Makefile
1 CSC = gmcs
2 CSOBJECTS = ExportToPlainTextApplicationAddin.cs
3 DLL = ExportToPlainTextAddin.dll
4
5 ifeq ($(shell uname), Linux)
6     EXE := /usr/lib/tomboy/Tomboy.exe
7     INSTALL_TARGET = ~/.config/tomboy/$(DLL)
8 else
9     EXE := /home/rpvn/vcs/tomboy/bin/Tomboy.exe
10     INSTALL_TARGET = /usr/lib/tomboy/addins/$(DLL)
11 endif
12
13 all: ${CSOBJECTS}
14         $(CSC) ${CSOBJECTS} \
15             -debug \
16             -out:ExportToPlainTextAddin.dll \
17             -target:library \
18             -pkg:tomboy-addins \
19             -r:Mono.Posix \
20             -r:$(EXE) \
21             -resource:ExportToPlainText.addin.xml
22
23 clean:
24         rm ExportToPlainTextAddin.dll
25
26 install: ${CSOBJECTS}
27         cp --update $(DLL) $(INSTALL_TARGET)