## Makefile.am for GTK+
-SRC_SUBDIRS = gdk-pixbuf gdk modules gtk demos
-SUBDIRS = po $(SRC_SUBDIRS) docs
-
-bin_SCRIPTS = gtk-config-2.0
+SRC_SUBDIRS = gdk-pixbuf gdk modules gtk demos contrib
+SUBDIRS = po $(SRC_SUBDIRS) docs build
# require automake 1.4
AUTOMAKE_OPTIONS = 1.4
README.cvs-commits \
README.win32 \
README.nanox \
+ config.h.win32 \
intl/libgettext.h \
intl/po2tbl.sed.in \
+ po/README.tools \
+ po/README.translators \
+ po/desk.pl \
+ po/makefile.mingw \
+ po/update.pl \
examples/aspectframe/Makefile \
examples/aspectframe/aspectframe.c \
examples/Makefile \
examples/spinbutton/Makefile \
examples/find-examples.sh
+GDKTARGET=@gdktarget@
+
+## Copy .pc files to target-specific names
+gtk+-$(GDKTARGET)-2.0.pc: gtk+-2.0.pc
+ rm -f gtk+-$(GDKTARGET)-2.0.pc && \
+ cp gtk+-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
+
+gdk-$(GDKTARGET)-2.0.pc: gdk-2.0.pc
+ rm -f gdk-$(GDKTARGET)-2.0.pc && \
+ cp gdk-2.0.pc gdk-$(GDKTARGET)-2.0.pc
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA= gdk-pixbuf-2.0.pc gdk-$(GDKTARGET)-2.0.pc gtk+-$(GDKTARGET)-2.0.pc
+
+## symlink gdk-2.0.pc and gtk+-2.0.pc to default target for the platform
+DEFAULT_GDKTARGET=x11
+install-data-local:
+ (cd $(DESTDIR)$(pkgconfigdir) && \
+ $(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)
+
dist-hook: gtk+.spec
if test -e $(srcdir)/INSTALL.in && test -e $(srcdir)/README.in ; then \
CONFIG_FILES="INSTALL:$(srcdir)/INSTALL.in README:$(srcdir)/README.in" \
snapshot:
- $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`
+ $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`