source: libpipi/trunk/pipi-sharp/Makefile.am

Last change on this file was 3064, checked in by Sam Hocevar, 12 years ago

Fix Win32 build: directly refer to the .snk file and cope with new
assembly installation locations.

File size: 1.3 KB
Line 
1# $Id: $
2
3# We need to install the .config file ourselves because of a gacutil
4# bug (https://bugzilla.novell.com/show_bug.cgi?id=363341)
5monodir = $(libdir)/mono/pipi-sharp-0.0
6if USE_CSHARP
7noinst_DATA = pipi-sharp.dll pipi-sharp.dll.config test.exe
8endif
9
10pipi_sources = \
11        $(srcdir)/AssemblyInfo.cs \
12        $(srcdir)/Pipi.cs \
13        $(srcdir)/Picture.cs
14
15test_sources = \
16        $(srcdir)/test.cs
17
18EXTRA_DIST = $(pipi_sources) $(test_sources) \
19        pipi-sharp.snk pipi-sharp.pc.in pipi-sharp.dll.config.in
20
21pipi-sharp.dll: $(pipi_sources)
22        $(GMCS) -debug -unsafe $(pipi_sources) -out:$@ -target:library \
23          -keyfile:$(srcdir)/pipi-sharp.snk
24
25test.exe: $(test_sources) pipi-sharp.dll
26        $(GMCS) -debug $(test_sources) -out:$@ -lib:./ \
27          -r:./pipi-sharp.dll
28
29if USE_CSHARP
30install-data-local:
31        MONO_SHARED_DIR=$$HOME $(GACUTIL) -i pipi-sharp.dll \
32          -package pipi-sharp-0.0 -f -root $(DESTDIR)$(libdir)
33        $(mkinstalldirs) $(DESTDIR)$(monodir)
34        sed -e 's@target="[^"]*/@target="@' < pipi-sharp.dll.config > $(DESTDIR)$(monodir)/pipi-sharp.dll.config
35
36uninstall-local:
37        MONO_SHARED_DIR=$$HOME $(GACUTIL) -u pipi-sharp.dll, Version=0.0 \
38          -package pipi-sharp-0.0 || true
39        rm -f $(DESTDIR)$(monodir)/pipi-sharp.dll.config
40        rmdir $(DESTDIR)$(monodir) 2>/dev/null || true
41endif
42
43clean-local:
44        rm -f *.exe *.dll *.mdb
45
Note: See TracBrowser for help on using the repository browser.