annotate make/dist.make @ 1497:48a0b289f1be

[project @ 1995-09-30 22:04:27 by jwe]
author jwe
date Sat, 30 Sep 1995 22:06:19 +0000
parents 99b98517b7ac
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1284
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
1 # dist.make -- how to make the distribution tar file.
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
2
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
3 top_distdir = $(distname)-$(version)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
4 top_files = ChangeLog FTP Makefile.in configure configure.in README \
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
5 $(HOME)/gnu/gnuorg/COPYING* $(HOME)/gnu/gnuorg/install-sh \
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
6 $(HOME)/bin/mkdirchain \
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
7 $(plain)/texinfo.tex
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
8 distdir = $(top_distdir)/$(distname)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
9 kpathsea_distdir = ../$(distname)/$(top_distdir)/kpathsea
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
10 ln_files = AUTHORS ChangeLog INSTALL NEWS README TAGS *.in *.h *.c \
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
11 configure *.make .gdbinit stamp-auto
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
12
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
13 dist: depend.make TAGS pre-dist-$(distname)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
14 rm -rf $(top_distdir)*
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
15 mkdir -p $(distdir)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
16 cd ..; make Makefile ./configure
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
17 cd ..; cp -p $(top_files) $(distname)/$(top_distdir)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
18 ln -s $(gnu)/share/autoconf/acsite.m4 $(top_distdir)/aclocal.m4
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
19 -ln $(ln_files) $(distdir)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
20 ln $(program_files) $(distdir)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
21 cd $(kpathsea_dir); $(MAKE) distdir=$(kpathsea_distdir) \
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
22 ln_files='$(ln_files)' distdir
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
23 cp -rp ../make $(top_distdir)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
24 ungnumake $(distdir)/Makefile.in $(kpathsea_distdir)/Makefile.in \
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
25 $(top_distdir)/Makefile.in $(top_distdir)/make/*.make
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
26 # Remove the extra files our patterns got us.
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
27 cd $(top_distdir); rm -f */depend.make */c-auto.h */Makefile
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
28 $(MAKE) post-dist-$(distname)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
29 cd $(distdir); add-version $(version) $(version_files)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
30 cd $(distdir); test ! -r *.info || touch *.info*
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
31 chmod -R a+rwX $(top_distdir)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
32 GZIP=-9 tar chzf $(top_distdir).tar.gz $(top_distdir)
99b98517b7ac [project @ 1995-04-27 22:05:53 by jwe]
jwe
parents:
diff changeset
33 rm -rf $(top_distdir)