Added options for yaz-config.
[yaz-moved-to-github.git] / Makefile.am
index 229560b..15c7323 100644 (file)
@@ -1,4 +1,4 @@
-## $Id: Makefile.am,v 1.5 2000-03-10 08:41:30 adam Exp $
+## $Id: Makefile.am,v 1.8 2000-06-19 09:49:35 adam Exp $
 
 AUTOMAKE_OPTIONS = foreign 
 
@@ -10,12 +10,14 @@ noinst_SCRIPTS = yaz-config
 SPEC_FILE=$(PACKAGE).spec
 EXTRA_DIST=$(SPEC_FILE) README LICENSE CHANGELOG TODO windows.txt
 
-yaz-config:
+yaz-config: Makefile
+       @rm -f yaz-config
        @echo "#!/bin/sh" >yaz-config
-       @echo "# YAZ settings for developers" >>yaz-config
+       @echo "# yaz-config for source tree" >>yaz-config
+       @echo "YAZVERSION=@VERSION@" >>yaz-config
        @echo "YAZBIN=\"`pwd`/bin\"" >>yaz-config
        @echo "YAZTAB=\"`pwd`/tab\"" >>yaz-config
-       @echo "YAZLIB=\"-L`pwd`/lib -lyaz @LIBS@\"" >>yaz-config
+       @echo "YAZLIB=\"-L`pwd`/lib/.libs -lyaz @LIBS@\"" >>yaz-config
        @echo "YAZINC=\"-I`pwd`/include\"" >>yaz-config
        chmod +x yaz-config