]> ncurses.scripts.mit.edu Git - ncurses.git/blob - dist.mk
ncurses 4.1
[ncurses.git] / dist.mk
1 # $Id: dist.mk,v 1.38 1997/05/16 00:33:41 tom Exp $
2 # Makefile for creating ncurses distributions.
3 #
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.
7 #
8 SHELL = /bin/sh
9
10 # These define the major/minor/patch versions of ncurses.
11 NCURSES_MAJOR = 4
12 NCURSES_MINOR = 1
13 NCURSES_PATCH = 970515
14
15 # We don't append the patch to the version, since this only applies to releases
16 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
17
18 DUMP    = lynx -dump
19 DUMP2   = $(DUMP) -nolist
20
21 ALL     = ANNOUNCE announce.html misc/ncurses-intro.doc misc/hackguide.doc
22
23 all :   $(ALL)
24
25 dist:   $(ALL)
26         (cd ..;  tar cvf ncurses-$(VERSION).tar `sed <ncurses-$(VERSION)/MANIFEST 's/^./ncurses-$(VERSION)/'`;  gzip ncurses-$(VERSION).tar)
27
28 distclean:
29         rm -f $(ALL)
30
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
34
35 ANNOUNCE : announce.html
36         $(DUMP) announce.html >ANNOUNCE
37
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
42
43 # Prepare distribution for version control
44 vcprepare:
45         find . -type d -exec mkdir {}/RCS \;
46
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)
50 writelock:
51         for x in `grep -v $(EXCEPTIONS) MANIFEST`; do if [ ! -f `dirname $$x`/RCS/`basename $$x`,v ]; then chmod a-w $${x}; fi; done
52
53 TAGS:
54         etags */*.[ch]
55
56 # Makefile ends here