[tasque/xbuild] [autobuild] Setup Makefile.am as autotools interface to xbuild build



commit bd903585eaca631af9153157ba32eef5ddbf89b5
Author: Antonius Riha <antoniusriha gmail com>
Date:   Tue Sep 18 16:40:06 2012 +0200

    [autobuild] Setup Makefile.am as autotools interface to xbuild build
    
    * There is only one Makefile (this one) in Tasque. Therefore: no recursing
    into subdirs any more.
    * Add debug switch
    * Add properties for build
    * Setup proj files and build task files as EXTRA_DIST
    * Add EXTRA_DIST to DISTCLEANFILES as well as POTFILES
    * Setup targets for xbuild invocation:
    	- all -> build
    	- clean -> clean
    	- install -> build, alttarget=install
    	- uninstall -> build, alttarget=uninstall
    	- dist-hook -> build, alttarget=dist
    	- distcheck-hook -> build, alttarget=distcheck
    
    * Target "clean-generic" calls clean and does some extra cleaning. clean-
    generic is called by distclean
    * Target "change-log" is called by dist-hook
    
    * build.csproj: Suppress regular target "CoreClean", since some files
    need build.dll to be around during their clean. Clean up build.dll in
    Makefile instead.

 Makefile.am        |   70 +++++++++++++++++++++++++++++++++++++++++++++++----
 build/build.csproj |    2 +
 2 files changed, 66 insertions(+), 6 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6997af0..10a4903 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,22 +1,80 @@
-SUBDIRS = src data po
+if ENABLE_DEBUG
+conf = "GtkLinuxDebug"
+else
+conf = "GtkLinuxRelease"
+endif
+
+PROPERTIES = \
+	/property:Configuration=$(conf) \
+	/property:AbsTopSrcDir=$(abs_top_srcdir) \
+	/property:AbsTopBuildDir=$(abs_top_builddir) \
+	/property:AbsDistDir="`pwd`/$(distdir)" \
+	/property:Prefix=$(prefix)
 
 pkgdata_DATA =  $(DLL_REFERENCES)
+
 DLL_REFERENCES =   
+
 EXTRA_DIST = \
 	$(DLL_REFERENCES) \
 	MAINTAINERS \
-	TRANSLATORS
+	TRANSLATORS \
+	tasque.sln \
+	build/build.csproj \
+	build/AssemblyInfo.cs \
+	build/Substitute.cs \
+	build/GetRelPath.cs \
+	build/GetSrcDirStrip.cs \
+	build/GetAbsSrcDir.cs \
+	build/Tasque.targets \
+	build/Tasque.CSharp.targets \
+	src/Libraries/RtmNet/RtmNet.csproj \
+	src/libtasque/libtasque.csproj \
+	src/Gtk.Tasque/Gtk.Tasque.csproj \
+	src/tasque/tasque.csproj \
+	src/Addins/Backends/Dummy/DummyBackend.csproj \
+	src/Addins/Backends/Eds/EdsBackend.csproj \
+	src/Addins/Backends/Hiveminder/HiveminderBackend.csproj \
+	src/Addins/Backends/IceCore/IceCoreBackend.csproj \
+	src/Addins/Backends/Rtm/RtmBackend.csproj \
+	src/Addins/Backends/Sqlite/SqliteBackend.csproj \
+	data/data.mdproj \
+	tests/tests.csproj \
+	po/po.mdproj
 
-DISTCLEANFILES =                        \
-        \
-        po/.intltool-merge-cache
+DISTCLEANFILES = \
+        $(EXTRA_DIST) \
+        po/.intltool-merge-cache \
+        po/POTFILES
 
 DISTCHECK_CONFIGURE_FLAGS = --disable-schemas-install --disable-scrollkeeper
 
 # Ignore scrollkeeper issues for now.  @#*$& scrollkeeper (from Evince)
 distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper | grep -v /share/gnome/help/ | grep -v \.omf
 
-dist-hook:
+all:
+	$(XBUILD) $(PROPERTIES) tasque.sln
+
+clean:
+	$(XBUILD) $(PROPERTIES) /target:clean tasque.sln
+
+install:
+	$(XBUILD) $(PROPERTIES) /property:alttarget=install tasque.sln
+
+uninstall:
+	$(XBUILD) $(PROPERTIES) /property:alttarget=uninstall tasque.sln
+
+dist-hook: change-log
+	$(XBUILD) $(PROPERTIES) /property:alttarget=dist tasque.sln
+
+distcheck-hook:
+	$(XBUILD) $(PROPERTIES) /property:alttarget=distcheck tasque.sln
+
+clean-generic: clean
+	rm -f build/build.dll build/build.dll.mdb
+	rm -rf build/obj
+
+change-log:
 	@if test -d "$(srcdir)/.git"; \
 	then \
 		echo Creating ChangeLog && \
diff --git a/build/build.csproj b/build/build.csproj
index a38b38e..dd8f47b 100644
--- a/build/build.csproj
+++ b/build/build.csproj
@@ -96,4 +96,6 @@
     <Copy SourceFiles="$(TopSrcDir)\..\build\%(Proj.Identity)" DestinationFiles="$(TopBuildDir)\..\build\%(Identity)" SkipUnchangedFiles="true" />
     <Copy SourceFiles="$(TopSrcDir)\..\build\%(Compile.Identity)" DestinationFiles="$(TopBuildDir)\..\build\%(Identity)" SkipUnchangedFiles="true" />
   </Target>
+  <!-- Override default clean target, since build.dll needs to be arround during other project's clean. -->
+  <Target Name="CoreClean" />
 </Project>



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