beagle r4402 - in branches/beagle-rdf: . RDFAdapter



Author: dbera
Date: Sat Jan 19 01:25:29 2008
New Revision: 4402
URL: http://svn.gnome.org/viewvc/beagle?rev=4402&view=rev

Log:
Add a Makefile to build the RDFAdapter as a library and the test-client.


Added:
   branches/beagle-rdf/RDFAdapter/Makefile.am
Modified:
   branches/beagle-rdf/AUTHORS
   branches/beagle-rdf/Makefile.am
   branches/beagle-rdf/configure.in

Modified: branches/beagle-rdf/AUTHORS
==============================================================================
--- branches/beagle-rdf/AUTHORS	(original)
+++ branches/beagle-rdf/AUTHORS	Sat Jan 19 01:25:29 2008
@@ -29,6 +29,7 @@
 Stephan Binner       <binner kde org>
 Tao Fei              <filia tao gmail com>
 Nirbheek Chauhan     <nirbheek chauhan gmail com>
+Enrico Minack        <minack l3s de>
 
 Our fantastic logo was designed by Larry Ewing
 and Garrett LeSage.

Modified: branches/beagle-rdf/Makefile.am
==============================================================================
--- branches/beagle-rdf/Makefile.am	(original)
+++ branches/beagle-rdf/Makefile.am	Sat Jan 19 01:25:29 2008
@@ -31,7 +31,8 @@
 
 SUBDIRS +=			\
 	firefox-extension	\
-	tools
+	tools			\
+	RDFAdapter
 
 if ENABLE_EPIPHANY_EXTENSION
 SUBDIRS += epiphany-extension

Added: branches/beagle-rdf/RDFAdapter/Makefile.am
==============================================================================
--- (empty file)
+++ branches/beagle-rdf/RDFAdapter/Makefile.am	Sat Jan 19 01:25:29 2008
@@ -0,0 +1,85 @@
+# Warnings we don't want to see
+
+CSC = $(MCS) -debug
+
+CSFLAGS = 			\
+	$(BEAGLE_DEFINES)
+
+LOCAL_ASSEMBLIES =			\
+	../Util/Util.dll		\
+	../BeagleClient/Beagle.dll
+
+ASSEMBLIES =				\
+	$(LOCAL_ASSEMBLIES:%=-r:%)
+
+WRAPPER_IN = ../tools/wrapper.in
+WRAPPER_SED = sed 					\
+	-e "s|\ prefix\@|$(prefix)|g"			\
+	-e "s|\ pkglibdir\@|$(pkglibdir)|g"		\
+	-e "s|\ libdir\@|$(libdir)|g"			\
+	-e "s|\ libexecdir\@|$(libexecdir)|g"		\
+	-e "s|\ bindir\@|$(bindir)|g"			\
+	-e "s|\ sbindir\@|$(sbindir)|g"			\
+	-e "s|\ sysconfdir\@|$(sysconfdir)|g"		\
+	-e "s|\ localstatedir\@|$(localstatedir)|g"     \
+	-e "s|\ gacprefix\@|$(GAC_PREFIX)|g"		\
+	-e "s|\ bash\@|$(BASH)|"
+
+BEAGLESOURCE_TARGET = BeagleSource.dll
+BEAGLESOURCE_CSFILES = $(srcdir)/BeagleSource.cs
+
+$(BEAGLESOURCE_TARGET) : $(BEAGLESOURCE_CSFILES) $(LOCAL_ASSEMBLIES)
+	$(CSC) -target:library -out:$@ $(CSFLAGS) $(BEAGLESOURCE_CSFILES) $(ASSEMBLIES)
+
+SEMWEB_CLIENT_TARGET = SemWebClient.exe
+SEMWEB_CLIENT_CSFILES = $(srcdir)/SemWebClient.cs
+SEMWEB_CLIENT_WRAPPER = beagle-semweb-client
+
+$(SEMWEB_CLIENT_TARGET): $(SEMWEB_CLIENT_CSFILES) $(LOCAL_ASSEMBLIES) $(BEAGLESOURCE_TARGET)
+	$(CSC) -out:$@ $(CSFLAGS) $(SEMWEB_CLIENT_CSFILES) $(ASSEMBLIES) -r:$(BEAGLESOURCE_TARGET)
+
+$(SEMWEB_CLIENT_WRAPPER): $(WRAPPER_IN)
+	$(WRAPPER_SED) -e "s|\ target\@|$(SEMWEB_CLIENT_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
+	chmod +x $(SEMWEB_CLIENT_WRAPPER)
+
+TARGETS = 				\
+	$(BEAGLESOURCE_TARGET)		\
+	$(SEMWEB_CLIENT_TARGET)
+
+TARGETS_MDB = $(TARGETS:%=%.mdb)
+
+WRAPPERS = 			\
+	$(SEMWEB_CLIENT_WRAPPER)
+
+all: $(TARGETS) $(WRAPPERS)
+
+install-data-local: $(TARGETS) $(WRAPPERS)
+	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
+	$(INSTALL_DATA) $(TARGETS) $(TARGETS_MDB) $(DESTDIR)$(pkglibdir)
+
+	$(mkinstalldirs) $(DESTDIR)$(bindir)
+
+	@for i in $(WRAPPERS); do						\
+		sed -e "s|\#installed=1|installed=1|" < $$i > $$i.tmp;		\
+		echo "$(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(bindir)/$$i";	\
+		$(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(bindir)/$$i || exit 1;	\
+		rm -f $$i.tmp;							\
+	done
+
+uninstall-local:
+	cd $(DESTDIR)$(pkglibdir) && rm -f $(TARGETS) && rm -f $(TARGETS_MDB)
+
+	@for i in $(WRAPPERS); do				\
+		echo "rm -f $(DESTDIR)$(bindir)/$$i";		\
+		rm -f $(DESTDIR)$(bindir)/$$i || exit 1;	\
+	done
+
+EXTRA_DIST =				\
+	$(BEAGLESOURCE_CSFILES)		\
+	$(SEMWEB_CLIENT_CSFILES)	\
+	$(WRAPPER_IN)
+
+CLEANFILES = 				\
+	$(TARGETS)			\
+	$(TARGETS_MDB)			\
+	$(WRAPPERS)

Modified: branches/beagle-rdf/configure.in
==============================================================================
--- branches/beagle-rdf/configure.in	(original)
+++ branches/beagle-rdf/configure.in	Sat Jan 19 01:25:29 2008
@@ -591,6 +591,7 @@
 doc/Makefile
 doc/api/Makefile
 bludgeon/Makefile
+RDFAdapter/Makefile
 beagle-0.0.pc
 beagle-daemon.pc
 beagle-ui-0.0.pc



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