1 # $Id: dist.mk,v 1.38 1997/05/16 00:33:41 tom Exp $
2 # Makefile for creating ncurses distributions.
4 # This only needs to be used directly as a makefile by developers, but
5 # configure mines the current version number out of here. To move
6 # to a new version number, just edit this file and run configure.
10 # These define the major/minor/patch versions of ncurses.
13 NCURSES_PATCH = 970515
15 # We don't append the patch to the version, since this only applies to releases
16 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
19 DUMP2 = $(DUMP) -nolist
21 ALL = ANNOUNCE announce.html misc/ncurses-intro.doc misc/hackguide.doc
26 (cd ..; tar cvf ncurses-$(VERSION).tar `sed <ncurses-$(VERSION)/MANIFEST 's/^./ncurses-$(VERSION)/'`; gzip ncurses-$(VERSION).tar)
31 # Don't mess with announce.html.in unless you have lynx available!
32 announce.html: announce.html.in
33 sed 's,@VERSION@,$(VERSION),' <announce.html.in >announce.html
35 ANNOUNCE : announce.html
36 $(DUMP) announce.html >ANNOUNCE
38 misc/ncurses-intro.doc: misc/ncurses-intro.html
39 $(DUMP2) misc/ncurses-intro.html > misc/ncurses-intro.doc
40 misc/hackguide.doc: misc/hackguide.html
41 $(DUMP2) misc/hackguide.html > misc/hackguide.doc
43 # Prepare distribution for version control
45 find . -type d -exec mkdir {}/RCS \;
47 # Write-lock almost all files not under version control.
48 ADA_EXCEPTIONS=$(shell eval 'a="\\\\\|";for x in Ada95/gen/terminal*.m4; do echo -n $${a}Ada95/ada_include/`basename $${x} .m4`; done')
49 EXCEPTIONS = 'announce.html$\\|ANNOUNCE\\|misc/.*\\.doc\\|man/terminfo.5\\|lib_gen.c'$(ADA_EXCEPTIONS)
51 for x in `grep -v $(EXCEPTIONS) MANIFEST`; do if [ ! -f `dirname $$x`/RCS/`basename $$x`,v ]; then chmod a-w $${x}; fi; done