public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Andrew Price <andyp@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: master - build: plugin askant in our build system
Date: Wed, 20 Aug 2008 13:22:00 -0000	[thread overview]
Message-ID: <20080820132054.679701202C3@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=be871661c2a33b908cba9fda02a213b5a00a75e5
Commit:        be871661c2a33b908cba9fda02a213b5a00a75e5
Parent:        e3b3a209563ec7143d9b1813aff7616139ae0a32
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Wed Aug 20 12:24:04 2008 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Wed Aug 20 12:28:31 2008 +0200

build: plugin askant in our build system

add contrib/askant/Makefile

remove lib and inc sections from setup.py and drive them
from askant/Makefile instead.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 contrib/askant/Makefile |   24 ++++++++++++++++++++++++
 contrib/askant/setup.py |    5 +----
 2 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/contrib/askant/Makefile b/contrib/askant/Makefile
new file mode 100644
index 0000000..cd80640
--- /dev/null
+++ b/contrib/askant/Makefile
@@ -0,0 +1,24 @@
+include ../../make/defines.mk
+
+all: build
+
+include $(OBJDIR)/make/clean.mk
+
+CFLAGS += -I$(SRCDIR)/gfs2/libgfs2
+CFLAGS += -I$(SRCDIR)/gfs2/include
+
+LDFLAGS += -L$(OBJDIR)/gfs2/libgfs2 -lgfs2
+
+build:
+	CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./setup.py build
+
+install:
+	./setup.py install --root $(DESTDIR)
+
+uninstall:
+	@echo UNINSTALL TARGET UNSUPPORTED
+
+clean:
+	./setup.py clean
+	rm askant/*.pyc
+	rm -rf build
diff --git a/contrib/askant/setup.py b/contrib/askant/setup.py
index 78daff2..3c971bc 100755
--- a/contrib/askant/setup.py
+++ b/contrib/askant/setup.py
@@ -11,8 +11,5 @@ setup(name="askant",
 	  url="http://andrewprice.me.uk/projects/askant",
 	  packages = ['askant','askant.fs'],
 	  ext_modules = [Extension("askant.fs.gfs2",
-		  sources = ["fsplugins/gfs2/gfs2module.c","fsplugins/gfs2/gfs2.c"],
-		  libraries = ["gfs2"],
-		  include_dirs=['../gfs2/libgfs2', '../gfs2/include', '../make'],
-		  library_dirs=['../gfs2/libgfs2'])],
+		  sources = ["fsplugins/gfs2/gfs2module.c","fsplugins/gfs2/gfs2.c"])],
 	  scripts = ['scripts/askant']) 


                 reply	other threads:[~2008-08-20 13:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080820132054.679701202C3@lists.fedorahosted.org \
    --to=andyp@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).