Updated makefiles.
[yaz-moved-to-github.git] / Makefile.am
1 ## $Id: Makefile.am,v 1.2 2000-02-28 11:44:39 adam Exp $
2
3 AUTOMAKE_OPTIONS = foreign 
4
5 DIST_SUBDIRS=util odr z39.50 asn ill zutil comstack ccl tab retrieval server lib include client ztest doc
6
7 SUBDIRS = @SUBDIRS_VAR@
8
9 noinst_SCRIPTS = yaz-config
10 SPEC_FILE=$(PACKAGE).spec
11 EXTRA_DIST=$(SPEC_FILE) README LICENSE CHANGELOG TODO windows.txt
12
13 yaz-config:
14         @echo "#!/bin/sh" >yaz-config
15         @echo "# YAZ settings for developers" >>yaz-config
16         @echo "YAZBIN=\"`pwd`/bin\"" >>yaz-config
17         @echo "YAZTAB=\"`pwd`/tab\"" >>yaz-config
18         @echo "YAZLIB=\"-L`pwd`/lib -lyaz @LIBS@\"" >>yaz-config
19         @echo "YAZINC=\"-I`pwd`/include\"" >>yaz-config
20         chmod +x yaz-config
21
22 dist-hook:
23         mkdir $(distdir)/win
24         -cp $(srcdir)/win/* $(distdir)/win
25
26 rpm: $(PACKAGE)-$(VERSION).tar.gz
27         cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
28         rpm -ba $(SPEC_FILE)