[Xcb-commit] xcb
Bart Massey
bart at kemper.freedesktop.org
Mon Sep 11 23:34:45 PDT 2006
xcb/src/Makefile.am | 76 ++++++++++++++++++++++++++++++++++++++++++----
xcb/src/extensions/README | 3 +
2 files changed, 74 insertions(+), 5 deletions(-)
New commits:
diff-tree 00ab1af3872dd1e987cd5fbc889517f9b27c122b (from ac59944f2a3b5970898374c63a73c2ff92e8336c)
Author: Bart Massey <bart at bartfan.localdomain>
Date: Mon Sep 11 23:29:10 2006 -0700
Removed GNU make dependency.
Made extensions directory persist.
diff --git a/xcb/src/Makefile.am b/xcb/src/Makefile.am
index f62c6e7..47e43d8 100644
--- a/xcb/src/Makefile.am
+++ b/xcb/src/Makefile.am
@@ -96,8 +96,6 @@ libXCB_la_LDFLAGS = -version-info 0:0:0
BUILT_SOURCES = $(COREPROTO) $(EXTENSIONS)
CLEANFILES = $(COREPROTO) $(EXTENSIONS)
-clean-local:
- rmdir extensions || true
XCB_LIBS = libXCB.la
@@ -179,9 +177,11 @@ libXCBxvmc_la_LDFLAGS = -version-info 0:
libXCBxvmc_la_LIBADD = $(XCB_LIBS)
libXCBxvmc_la_SOURCES = extensions/xvmc.c extensions/xvmc.h
-vpath %.xml $(XCBPROTO_XCBINCLUDEDIR) $(XCBPROTO_XCBINCLUDEDIR)/extensions
+$(EXTHEADERS) $(EXTSOURCES): c-client.xsl
-%.h: %.xml c-client.xsl
+SUFFIXES = .xml
+
+.xml.h:
@n=`dirname $*`; test -d $$n || (echo mkdir $$n; mkdir $$n)
$(XSLTPROC) --stringparam mode header \
--stringparam base-path $(XCBPROTO_XCBINCLUDEDIR)/ \
@@ -189,10 +189,76 @@ vpath %.xml $(XCBPROTO_XCBINCLUDEDIR) $(
$(XCBPROTO_XCBINCLUDEDIR)/extensions/ \
-o $@ $(srcdir)/c-client.xsl $<
-%.c: %.xml c-client.xsl
+.xml.c:
@n=`dirname $*`; test -d $$n || (echo mkdir $$n; mkdir $$n)
$(XSLTPROC) --stringparam mode source \
--stringparam base-path $(XCBPROTO_XCBINCLUDEDIR)/ \
--stringparam extension-path \
$(XCBPROTO_XCBINCLUDEDIR)/extensions/ \
-o $@ $(srcdir)/c-client.xsl $<
+
+xproto.xml: $(XCBPROTO_XCBINCLUDEDIR)/xproto.xml
+ ln -s $< $@
+
+extensions/bigreq.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/bigreq.xml
+ ln -s $< $@
+
+extensions/composite.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/composite.xml
+ ln -s $< $@
+
+extensions/damage.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/damage.xml
+ ln -s $< $@
+
+extensions/dpms.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/dpms.xml
+ ln -s $< $@
+
+extensions/glx.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/glx.xml
+ ln -s $< $@
+
+extensions/randr.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/randr.xml
+ ln -s $< $@
+
+extensions/record.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/record.xml
+ ln -s $< $@
+
+extensions/render.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/render.xml
+ ln -s $< $@
+
+extensions/res.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/res.xml
+ ln -s $< $@
+
+extensions/screensaver.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/screensaver.xml
+ ln -s $< $@
+
+extensions/shape.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/shape.xml
+ ln -s $< $@
+
+extensions/shm.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/shm.xml
+ ln -s $< $@
+
+extensions/sync.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/sync.xml
+ ln -s $< $@
+
+extensions/xc_misc.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/xc_misc.xml
+ ln -s $< $@
+
+extensions/xevie.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/xevie.xml
+ ln -s $< $@
+
+extensions/xf86dri.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/xf86dri.xml
+ ln -s $< $@
+
+extensions/xfixes.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/xfixes.xml
+ ln -s $< $@
+
+extensions/xprint.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/xprint.xml
+ ln -s $< $@
+
+extensions/xtest.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/xtest.xml
+ ln -s $< $@
+
+extensions/xvmc.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/xvmc.xml
+ ln -s $< $@
+
+extensions/xv.xml: $(XCBPROTO_XCBINCLUDEDIR)/extensions/xv.xml
+ ln -s $< $@
diff --git a/xcb/src/extensions/README b/xcb/src/extensions/README
new file mode 100644
index 0000000..21d6d06
--- /dev/null
+++ b/xcb/src/extensions/README
@@ -0,0 +1,3 @@
+It is convenient not to have to teach Makefile.am when to
+create this directory, but GIT won't track an empty
+directory. Hence this file. Sorry.
More information about the xcb-commit
mailing list