Set version number to 1.2.1.
[platform/upstream/gnome-common.git] / Makefile.am
index 7484fd7..062e33e 100644 (file)
@@ -1,9 +1,15 @@
-SUBDIRS = bin macros macros2 doc
+if PLATFORM_GNOME_2
+pkgconfig_file = gnome-common-2.0.pc
+support = support
+else
+pkgconfig_file =
+support =
+endif
 
-EXTRA_DIST = gnome-common.spec
+SUBDIRS = bin macros macros2 doc $(support)
+
+EXTRA_DIST = gnome-common.spec gnome-common-2.0.pc.in gnome-common.pc.in
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = $(pkgconfig_file) gnome-common.pc
 
-dist-hook:
-       for subdir in intl support ; do \
-         mkdir $(distdir)/$$subdir ; \
-         cp -pr $(srcdir)/$$subdir $(distdir) ; \
-       done