[Fusionforge-commits] r9530 - trunk/3rd-party/db2latex-xsl

Christian Bayle cbayle at libremir.placard.fr.eu.org
Mon Apr 19 21:44:41 CEST 2010


Author: cbayle
Date: 2010-04-19 21:44:41 +0200 (Mon, 19 Apr 2010)
New Revision: 9530

Added:
   trunk/3rd-party/db2latex-xsl/Makefile
   trunk/3rd-party/db2latex-xsl/Makefile.debian
Log:
Add std makefile


Added: trunk/3rd-party/db2latex-xsl/Makefile
===================================================================
--- trunk/3rd-party/db2latex-xsl/Makefile	                        (rev 0)
+++ trunk/3rd-party/db2latex-xsl/Makefile	2010-04-19 19:44:41 UTC (rev 9530)
@@ -0,0 +1,22 @@
+DISTDEBIAN=$(shell [ -f /etc/debian_version ] && echo debian)
+DISTREDHAT=$(shell grep -qi 'Red Hat' /etc/issue && echo rh)
+DISTSUSE=$(shell grep -qi 'SuSE' /etc/issue && echo rh)
+DIST=$(DISTDEBIAN)$(DISTREDHAT)$(DISTSUSE)
+
+PKGDIR=db2latex-xsl-0.8pre1
+PKGDSC=$(shell ls *.dsc | sort -V -r | head -1)
+MINOR=$(shell grep ^Version $(PKGDSC) | head -1 | sed 's/.[^-]*-\(.*\)/\1/')
+PARAM=PKGDIR=$(PKGDIR) svnrev=$(MINOR)
+
+default: $(PKGDIR)
+	@make -f Makefile.$(DIST) $(PARAM) default
+	@cat ../../Makefile.$(DIST) | grep '^.*:.*#$$' | sed 's/FUSIONFORGE/$(FUSIONFORGE)/' | sed 's/^\(.*:\).*#\(.*\)#$$/\1		\2/'
+
+%: $(PKGDIR)
+	@make -f Makefile.$(DIST) $(PARAM) $@
+
+$(PKGDIR):
+	dpkg-source -x $(PKGDSC)
+
+clean:
+	rm -rf $(PKGDIR)

Added: trunk/3rd-party/db2latex-xsl/Makefile.debian
===================================================================
--- trunk/3rd-party/db2latex-xsl/Makefile.debian	                        (rev 0)
+++ trunk/3rd-party/db2latex-xsl/Makefile.debian	2010-04-19 19:44:41 UTC (rev 9530)
@@ -0,0 +1 @@
+include ../../Makefile.debian




More information about the Fusionforge-commits mailing list