This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: STABLE3 - config: cleanup rng2ldif build


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=64b7b036cdbb228508bbe2c3c667fc775b940c79
Commit:        64b7b036cdbb228508bbe2c3c667fc775b940c79
Parent:        6ba6404b0725fc61bd7df34734caa6b204ce1f28
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Wed Sep 9 10:56:29 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Wed Sep 9 10:57:09 2009 +0200

config: cleanup rng2ldif build

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 config/tools/ldap/Makefile          |    3 +++
 config/tools/ldap/rng2ldif/Makefile |   16 ++++++++--------
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/config/tools/ldap/Makefile b/config/tools/ldap/Makefile
index 5c6b2d6..f58c788 100644
--- a/config/tools/ldap/Makefile
+++ b/config/tools/ldap/Makefile
@@ -2,6 +2,8 @@ TARGET= confdb2ldif
 
 SBINDIRT=$(TARGET)
 
+SUBDIRS=rng2ldif
+
 all: ${TARGET}
 
 include ../../../make/defines.mk
@@ -9,6 +11,7 @@ include $(OBJDIR)/make/cobj.mk
 include $(OBJDIR)/make/clean.mk
 include $(OBJDIR)/make/install.mk
 include $(OBJDIR)/make/uninstall.mk
+include $(OBJDIR)/make/passthrough.mk
 
 OBJS=	confdb2ldif.o
 
diff --git a/config/tools/ldap/rng2ldif/Makefile b/config/tools/ldap/rng2ldif/Makefile
index 5192780..75a2b03 100644
--- a/config/tools/ldap/rng2ldif/Makefile
+++ b/config/tools/ldap/rng2ldif/Makefile
@@ -10,8 +10,9 @@ include $(OBJDIR)/make/install.mk
 include $(OBJDIR)/make/uninstall.mk
 
 CFLAGS += -D_GNU_SOURCE
-CFLAGS += -I. -I${incdir}
+CFLAGS += -I. 
 CFLAGS += `xml2-config --cflags`
+CFLAGS += -I${incdir}
 
 LDFLAGS += `xml2-config --libs`
 LDFLAGS += -L${libdir}
@@ -27,17 +28,16 @@ SHAREDOBJS= zalloc.o \
 	    name.o
 
 ${TARGET1}: ${SHAREDOBJS} ${OBJS1}
-	$(CC) -o $@ $^ $(EXTRA_LDFLAGS) $(LDFLAGS)
+	$(CC) -o $@ $^ $(LDFLAGS)
 
 ${TARGET2}: ${SHAREDOBJS} ${OBJS2}
 	$(CC) -o $@ $^ $(LDFLAGS)
 
-ldif-update: all ../../../plugins/ldap/ldap-base.csv
-	make -C ../../xml cluster.rng
-	./rng2ldif ../../xml/cluster.rng \
-		../../../plugins/ldap/ldap-base.csv \
-		../../../plugins/ldap/99cluster.ldif
-	
+ldif-update: all $(SRCDIR)/config/plugins/ldap/ldap-base.csv
+	make -C $(OBJDIR)/config/tools/xml cluster.rng
+	./rng2ldif $(OBJDIR)/config/tools/xml/cluster.rng \
+		$(SRCDIR)/config/plugins/ldap/ldap-base.csv \
+		$(SRCDIR)/config/plugins/ldap/99cluster.ldif
 
 clean: generalclean
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]