changeset 11882:c0e0fcd75926

[gaim-migrate @ 14173] "make distcheck" fixes for the mono plugin loader (aka. Makefile rewrites) committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 29 Oct 2005 02:01:55 +0000
parents 4b84b080a5f2
children d8128936c2f1
files plugins/mono/Makefile.am plugins/mono/api/Makefile.am plugins/mono/loader/Makefile.am
diffstat 3 files changed, 26 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mono/Makefile.am	Sat Oct 29 01:28:19 2005 +0000
+++ b/plugins/mono/Makefile.am	Sat Oct 29 02:01:55 2005 +0000
@@ -1,15 +1,19 @@
 SUBDIRS = api loader
 
-TARGETS = MPlugin.dll GetBuddyBack.dll
+mono_sources = GetBuddyBack.cs \
+			   MPlugin.cs
+
+EXTRA_DIST = $(mono_sources)
 
-all: $(TARGETS)
-	
-install-exec-am: $(TARGETS)
-	$(INSTALL) -m 644 $(TARGETS) $(libdir)/gaim
+monodir = $(libdir)/gaim
+mono_SCRIPTS = MPlugin.dll GetBuddyBack.dll
+mono_build_sources = $(addprefix $(srcdir)/, $(mono_sources))
 
-clean-generic:
-	rm -rf $(TARGETS)
+all: $(mono_SCRIPTS)
 
 SUFFIXES = .cs .dll
-.cs.dll: api/GaimAPI.dll
-	mcs -t:library -lib:./api -out:$*.dll -r:GaimAPI.dll $*.cs
+.cs.dll: api/GaimAPI.dll $(mono_build_sources)
+	mcs -t:library -lib:./api -out:$@ -r:GaimAPI.dll $(addprefix $(srcdir)/, $<)
+
+clean-local:
+	rm -f $(mono_SCRIPTS)
--- a/plugins/mono/api/Makefile.am	Sat Oct 29 01:28:19 2005 +0000
+++ b/plugins/mono/api/Makefile.am	Sat Oct 29 02:01:55 2005 +0000
@@ -1,4 +1,5 @@
-MONOSOURCES = \
+monodir=$(libdir)/gaim
+mono_sources = \
 	GaimPlugin.cs \
 	Debug.cs \
 	BuddyList.cs \
@@ -6,17 +7,16 @@
 	Signal.cs \
 	Event.cs
 
-TARGET=GaimAPI.dll
+EXTRA_DIST = $(mono_sources)
 
-all: $(TARGET)
+mono_SCRIPTS = GaimAPI.dll
 
-$(TARGET): $(MONOSOURCES)
-	mcs -t:library -out:$(TARGET) $(MONOSOURCES)
+mono_build_sources = $(addprefix $(srcdir)/, $(mono_sources))
 
-.PHONY: install clean
+all: $(mono_SCRIPTS)
 
-install: $(TARGET)
-	$(INSTALL) -m 644 $(TARGET) $(libdir)/gaim
-	
-clean:
-	rm -rf $(TARGET)
+$(mono_SCRIPTS): $(mono_build_sources)
+	mcs -t:library -out:$(mono_SCRIPTS) $(mono_build_sources)
+
+clean-local:
+	rm -rf $(mono_SCRIPTS)
--- a/plugins/mono/loader/Makefile.am	Sat Oct 29 01:28:19 2005 +0000
+++ b/plugins/mono/loader/Makefile.am	Sat Oct 29 02:01:55 2005 +0000
@@ -4,7 +4,9 @@
 
 mono_la_SOURCES	= \
 	mono.c \
+	mono-glue.h \
 	mono-helper.c \
+	mono-helper.h \
 	debug-glue.c \
 	signal-glue.c \
 	blist-glue.c