f-spot r4665 - trunk/GKeyFile



Author: sdelcroix
Date: Thu Dec 11 09:21:55 2008
New Revision: 4665
URL: http://svn.gnome.org/viewvc/f-spot?rev=4665&view=rev

Log:
fix the Makefile

2008-12-11  Stephane Delcroix  <sdelcroix novell com>

	* Makefile.am: fix the Makefile to fit the f-spot buildsystem and
	install the resulting dll

Modified:
   trunk/GKeyFile/ChangeLog
   trunk/GKeyFile/Makefile.am

Modified: trunk/GKeyFile/Makefile.am
==============================================================================
--- trunk/GKeyFile/Makefile.am	(original)
+++ trunk/GKeyFile/Makefile.am	Thu Dec 11 09:21:55 2008
@@ -1,6 +1,20 @@
-all: gkeyfile-sharp.dll
+include $(top_srcdir)/Makefile.include
 
-CSFLAGS=-g
+ASSEMBLY_NAME = gkeyfile-sharp
+
+ASSEMBLY_SOURCES =
+
+ASSEMBLY_CUSTOMS =			\
+	$(srcdir)/GKeyFile.custom
+	
+REFS =
+
+PKGS =					\
+	-pkg:glib-sharp-2.0
+
+ASSEMBLY = $(ASSEMBLY_NAME).dll
+
+all: $(ASSEMBLY)
 
 gkeyfile-api.raw: gkeyfile-sharp-sources.xml
 	gapi2-parser gkeyfile-sharp-sources.xml
@@ -12,23 +26,24 @@
 .generated_timestamp: gkeyfile-api.xml $(CUSTOMS)
 	gapi2-codegen --outdir=generated --customdir=$(srcdir) --generate gkeyfile-api.xml
 	touch $@
+$(ASSEMBLY): .generated_timestamp $(ASSEMBLY_SOURCES) $(ASSEMBLY_CUSTOMS)
+	$(CSC_LIB) -unsafe -out:$@ $(PKGS) $(REFS) $(ASSEMBLY_SOURCES) $(srcdir)/generated/*.cs
 
-gkeyfile-sharp.dll: .generated_timestamp $(SOURCES) $(CUSTOMS)
-	gmcs -unsafe $(CSFLAGS) -pkg:glib-sharp-2.0 -target:library -out:$@ $(srcdir)/generated/*.cs $(SOURCES)
+assemblydir = $(pkglibdir)
+assembly_DATA =			\
+	$(ASSEMBLY)
 
-CUSTOMS =				\
-	$(srcdir)/GKeyFile.custom
-	
 EXTRA_DIST =				\
-	$(CUSTOMS)			\
-	gkeyfile-sharp-sources.xml	\
+	$(ASSEMBLY_SOURCES)		\
+	$(ASSEMBLY_CUSTOMS)		\
+	$(ASSEMBLY_NAME)-sources.xml	\
 	gkeyfile-api.raw		\
 	GKeyFile.metadata		\
 	gkeyfile-api.xml		\
 	.generated_timestamp		\
 	generated/*.cs
 
-CLEANFILES =				\
-	gkeyfile-sharp.dll		\
-	gkeyfile-sharp.dll.mdb
 
+CLEANFILES =			\
+	$(ASSEMBLY)		\
+	$(ASSEMBLY).mdb



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]