summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2001-04-27 01:38:54 +0000
committerSven Neumann <neo@src.gnome.org>2001-04-27 01:38:54 +0000
commit8ff2bf3b6efe288b29b2f406909ae635c9a84a71 (patch)
tree37a6555505d501cd47781f73c35cc15106a7dd69 /Makefile.am
parentb6809365c04c0177c13257bc65358962fe25139e (diff)
downloadgdk-pixbuf-8ff2bf3b6efe288b29b2f406909ae635c9a84a71.tar.gz
before creating links, check if pkg-config files exist for the default
2001-04-27 Sven Neumann <sven@gimp.org> * Makefile.am: before creating links, check if pkg-config files exist for the default target. Otherwise link to the pkg-config files that got installed with this build.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 2f9eaa609..658560b29 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -134,8 +134,13 @@ pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.
DEFAULT_GDKTARGET=x11
install-data-local:
(cd $(DESTDIR)$(pkgconfigdir) && \
+ test -e gdk-$(DEFAULT_GDKTARGET)-2.0.pc && \
+ test -e gtk+-$(DEFAULT_GDKTARGET)-2.0.pc && \
$(LN_S) -f gdk-$(DEFAULT_GDKTARGET)-2.0.pc gdk-2.0.pc && \
- $(LN_S) -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc)
+ $(LN_S) -f gtk+-$(DEFAULT_GDKTARGET)-2.0.pc gtk+-2.0.pc) || \
+ (cd $(DESTDIR)$(pkgconfigdir) && \
+ $(LN_S) -f gdk-$(GDKTARGET)-2.0.pc gdk-2.0.pc && \
+ $(LN_S) -f gtk+-$(GDKTARGET)-2.0.pc gtk+-2.0.pc)
dist-hook: gtk+.spec
if test -e $(srcdir)/INSTALL.in && test -e $(srcdir)/README.in ; then \