1284
|
1 # dist.make -- how to make the distribution tar file. |
|
2 |
|
3 top_distdir = $(distname)-$(version) |
|
4 top_files = ChangeLog FTP Makefile.in configure configure.in README \ |
|
5 $(HOME)/gnu/gnuorg/COPYING* $(HOME)/gnu/gnuorg/install-sh \ |
|
6 $(HOME)/bin/mkdirchain \ |
|
7 $(plain)/texinfo.tex |
|
8 distdir = $(top_distdir)/$(distname) |
|
9 kpathsea_distdir = ../$(distname)/$(top_distdir)/kpathsea |
|
10 ln_files = AUTHORS ChangeLog INSTALL NEWS README TAGS *.in *.h *.c \ |
|
11 configure *.make .gdbinit stamp-auto |
|
12 |
|
13 dist: depend.make TAGS pre-dist-$(distname) |
|
14 rm -rf $(top_distdir)* |
|
15 mkdir -p $(distdir) |
|
16 cd ..; make Makefile ./configure |
|
17 cd ..; cp -p $(top_files) $(distname)/$(top_distdir) |
|
18 ln -s $(gnu)/share/autoconf/acsite.m4 $(top_distdir)/aclocal.m4 |
|
19 -ln $(ln_files) $(distdir) |
|
20 ln $(program_files) $(distdir) |
|
21 cd $(kpathsea_dir); $(MAKE) distdir=$(kpathsea_distdir) \ |
|
22 ln_files='$(ln_files)' distdir |
|
23 cp -rp ../make $(top_distdir) |
|
24 ungnumake $(distdir)/Makefile.in $(kpathsea_distdir)/Makefile.in \ |
|
25 $(top_distdir)/Makefile.in $(top_distdir)/make/*.make |
|
26 # Remove the extra files our patterns got us. |
|
27 cd $(top_distdir); rm -f */depend.make */c-auto.h */Makefile |
|
28 $(MAKE) post-dist-$(distname) |
|
29 cd $(distdir); add-version $(version) $(version_files) |
|
30 cd $(distdir); test ! -r *.info || touch *.info* |
|
31 chmod -R a+rwX $(top_distdir) |
|
32 GZIP=-9 tar chzf $(top_distdir).tar.gz $(top_distdir) |
|
33 rm -rf $(top_distdir) |