diff options
author | Ted Gould <ted@gould.cx> | 2009-12-17 08:37:26 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-12-17 08:37:26 -0600 |
commit | 4d95601ab8c0a97fff79b7362540664d200feb41 (patch) | |
tree | 7d31197b4e5cb4f3972631563ce0ffaca7da27d9 /bindings/mono | |
parent | 7219db0f6c8ff0c62fdae4afced2698d63f39a1a (diff) | |
parent | 6af5c9970afd9ea2d9e1192d67fd92438dda8a8c (diff) | |
download | ayatana-indicator-application-4d95601ab8c0a97fff79b7362540664d200feb41.tar.gz ayatana-indicator-application-4d95601ab8c0a97fff79b7362540664d200feb41.tar.bz2 ayatana-indicator-application-4d95601ab8c0a97fff79b7362540664d200feb41.zip |
Mono build cleanups
Diffstat (limited to 'bindings/mono')
-rw-r--r-- | bindings/mono/Makefile.am | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/bindings/mono/Makefile.am b/bindings/mono/Makefile.am index 87f1e5a..fe56158 100644 --- a/bindings/mono/Makefile.am +++ b/bindings/mono/Makefile.am @@ -13,8 +13,9 @@ ASSEMBLY = appindicator-sharp.dll TARGET = $(ASSEMBLY) $(ASSEMBLY).config assemblydir = $(libdir)/appindicator-sharp-0.1 assembly_DATA = $(TARGET) -CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(API) $(RAW_API) $(TEST) +CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(ASSEMBLY_NAME).snk $(API) $(RAW_API) $(TEST) DISTCLEANFILES = $(ASSEMBLY).config +TEST_SOURCES = TestIndicator.cs EXTRA_DIST = \ $(RAW_API) \ $(METADATA) \ @@ -23,7 +24,7 @@ EXTRA_DIST = \ app-indicator.sources.xml \ $(TEST_SOURCES) -TEST_SOURCES = TestIndicator.cs +GACUTIL_FLAGS="-package $(ASSEMBLY_NAME) -root $(DESTDIR)$(prefix)/lib" references = $(GTK_SHARP_LIBS) test_references = $(GTK_SHARP_LIBS) $(NUNIT_LIBS) -r:$(ASSEMBLY) @@ -49,7 +50,16 @@ generated-stamp: $(API) $(ASSEMBLY): generated-stamp @rm -f $(ASSEMBLY).mdb - $(CSC) $(CSFLAGS) -nowarn:0169,0612,0618 -unsafe -out:$(ASSEMBLY) -target:library $(references) $(builddir)/$(GENERATED_SOURCES) + $(SN) -k $(ASSEMBLY_NAME).snk + $(CSC) $(CSFLAGS) -keyfile:$(ASSEMBLY_NAME).snk -nowarn:0169,0612,0618 -unsafe -out:$(ASSEMBLY) -target:library $(references) $(builddir)/$(GENERATED_SOURCES) + +install-data-local: + echo "$(GACUTIL) -i $(ASSEMBLY_NAME).dll -package $(ASSEMBLY_NAME) -root $(DESTDIR)$(prefix)/lib"; \ + $(GACUTIL) -i $(ASSEMBLY_NAME).dll -package $(ASSEMBLY_NAME) -root $(DESTDIR)$(prefix)/lib || exit 1; + +uninstall-local: + echo "$(GACUTIL) -u $(ASSEMBLY_NAME) -package $(ASSEMBLY_NAME) -root $(DESTDIR)$(prefix)/lib"; \ + $(GACUTIL) -u $(ASSEMBLY_NAME) -package $(ASSEMBLY_NAME) -root $(DESTDIR)$(prefix)/lib || exit 1; $(TEST): $(ASSEMBLY) $(TEST_SOURCES) $(CSC) -out:$(TEST) -target:library $(test_references) $(srcdir)/$(TEST_SOURCES) |