summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorBart Massey <bart@cs.pdx.edu>2006-09-12 00:42:11 -0700
committerBart Massey <bart@cs.pdx.edu>2006-09-12 00:42:11 -0700
commitd4e768fc32ff9ce79a4259d252f4a4a4b11d5db8 (patch)
tree75ee8726fcbd8f8042648347aa0df4bb4b09f12f /src/Makefile.am
parent0c3e528563f8e8db45c340e7d050a1b42e65cb73 (diff)
Cleaned up previous fix for GNU Make stuff.
Got "make distcheck" to work (whatever that does).
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am97
1 files changed, 32 insertions, 65 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 47e43d8..43f7236 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -71,6 +71,29 @@ ESSENTIAL_EXTENSIONS = \
extensions/xc_misc.h \
extensions/xc_misc.c
+EXTENSION_XML = \
+ extensions/bigreq.xml \
+ extensions/composite.xml \
+ extensions/damage.xml \
+ extensions/dpms.xml \
+ extensions/glx.xml \
+ extensions/randr.xml \
+ extensions/record.xml \
+ extensions/render.xml \
+ extensions/res.xml \
+ extensions/screensaver.xml \
+ extensions/shape.xml \
+ extensions/shm.xml \
+ extensions/sync.xml \
+ extensions/xc_misc.xml \
+ extensions/xevie.xml \
+ extensions/xf86dri.xml \
+ extensions/xfixes.xml \
+ extensions/xprint.xml \
+ extensions/xtest.xml \
+ extensions/xvmc.xml \
+ extensions/xv.xml
+
COREHEADERS = xproto.h
CORESOURCES = xproto.c
COREPROTO = $(CORESOURCES) $(COREHEADERS)
@@ -83,7 +106,7 @@ libXCB_la_LIBADD = $(XCBPROTO_LIBS) $(XPROTO_LIBS) $(XAU_LIBS) $(XDMCP_LIBS)
libXCB_la_SOURCES = \
xcb_conn.c xcb_out.c xcb_in.c xcb_ext.c xcb_xid.c \
xcb_list.c xcb_util.c xcb_xlib.c xcb_auth.c \
- $(COREPROTO) $(ESSENTIAL_EXTENSIONS)
+ $(COREPROTO) $(ESSENTIAL_EXTENSIONS) c-client.xsl
# Explanation for -version-info:
# -version-info current:revision:age
@@ -198,67 +221,11 @@ SUFFIXES = .xml
-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 $< $@
+ $(LN_S) $< $@
+
+$(EXTENSION_XML):
+ [ -d extensions ] || mkdir extensions
+ for i in $(EXTENSION_XML) ; do \
+ rm -f $$i ; \
+ $(LN_S) $(XCBPROTO_XCBINCLUDEDIR)/$$i $$i ; \
+ done