1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Create tarballs through an Automake-like "make dist" command.

This commit is contained in:
Bruno Haible
2012-07-01 14:46:34 +02:00
parent b392998058
commit 9386cd6fc4
6 changed files with 194 additions and 5 deletions

View File

@@ -1,3 +1,24 @@
2012-07-01 Bruno Haible <bruno@clisp.org>
Create tarballs through an Automake-like "make dist" command.
* Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
(PACKAGE, VERSION, TAR, GZIP): New macros.
(dist): New rule.
* doc/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
* lib/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
* src/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
* tests/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
(distdir): New rule.
2012-04-28 Bruno Haible <bruno@clisp.org> 2012-04-28 Bruno Haible <bruno@clisp.org>
* configure: Regenerated with autoconf-2.69. * configure: Regenerated with autoconf-2.69.

View File

@@ -1,6 +1,6 @@
# Makefile for gperf # Makefile for gperf
# Copyright (C) 1989, 1992, 1993, 1998, 2002 Free Software Foundation, Inc. # Copyright (C) 1989, 1992, 1993, 1998, 2002, 2012 Free Software Foundation, Inc.
# Written by Douglas C. Schmidt <schmidt@ics.uci.edu> # Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
# and Bruno Haible <bruno@clisp.org>. # and Bruno Haible <bruno@clisp.org>.
# #
@@ -58,5 +58,42 @@ maintainer-clean : force
cd @subdir@; if test -f Makefile; then $(MAKE) maintainer-clean; fi cd @subdir@; if test -f Makefile; then $(MAKE) maintainer-clean; fi
$(RM) config.status config.log config.cache Makefile $(RM) config.status config.log config.cache Makefile
# List of source files.
SOURCE_FILES = \
README README.woe32 README.vms NEWS AUTHORS \
configure.ac aclocal.m4 Makefile.in Makefile.msvc Makefile.vms \
Makefile.devel ChangeLog
# List of distributed files imported from other packages.
IMPORTED_FILES = COPYING INSTALL mkinstalldirs
# List of distributed files generated by autotools or Makefile.devel.
GENERATED_FILES = configure
# List of distributed files generated by "make".
DISTRIBUTED_BUILT_FILES =
# List of distributed files.
DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
distdir : $(DISTFILES)
for file in $(DISTFILES); do \
if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
cp -p $$dir/$$file '$(distdir)'/$$file || exit 1; \
done
subdir=@subdir@; test -d '$(distdir)'/$$subdir || mkdir '$(distdir)'/$$subdir; cd $$subdir; $(MAKE) distdir distdir='$(distdir)'/$$subdir
# Creating a distribution tarball.
PACKAGE = gperf
VERSION = `sed -n -e 's/.*version_string = "\(.*\)".*/\1/p' < src/version.cc`
TAR = tar
GZIP = gzip
dist : force
tmpdistdir=$(PACKAGE)-$(VERSION); \
abstmpdistdir=`pwd`/$$tmpdistdir; \
rm -rf $$tmpdistdir $$tmpdistdir.tar $$tmpdistdir.tar.gz \
&& mkdir $$tmpdistdir \
&& $(MAKE) distdir distdir="$$abstmpdistdir" \
&& $(TAR) chof $$tmpdistdir.tar --owner=root --group=root $$tmpdistdir \
&& $(GZIP) -9 $$tmpdistdir.tar \
&& rm -rf $$tmpdistdir
force : force :

View File

@@ -1,6 +1,6 @@
# Makefile for gperf/doc # Makefile for gperf/doc
# Copyright (C) 1998, 2000, 2002-2003, 2007 Free Software Foundation, Inc. # Copyright (C) 1998, 2000, 2002-2003, 2007, 2012 Free Software Foundation, Inc.
# Written by Douglas C. Schmidt <schmidt@ics.uci.edu> # Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
# and Bruno Haible <bruno@clisp.org>. # and Bruno Haible <bruno@clisp.org>.
# #
@@ -147,5 +147,35 @@ distclean : clean
maintainer-clean : distclean maintainer-clean : distclean
$(RM) *.info *.dvi *.ps *.pdf *.html $(RM) *.info *.dvi *.ps *.pdf *.html
# List of source files.
SOURCE_FILES = \
configure.ac Makefile.in \
gperf.texi
# List of distributed files imported from other packages.
IMPORTED_FILES = \
gpl-3.0.texi \
texinfo.tex texi2html \
help2man
# List of distributed files generated by autotools or Makefile.devel.
GENERATED_FILES = \
configure \
gperf.1
# List of distributed files generated by "make".
DISTRIBUTED_BUILT_FILES = \
gperf.info \
gperf.dvi \
gperf.ps \
gperf.pdf \
gperf.html \
gperf_toc.html gperf_[0-9].html gperf_[0-9][0-9].html
# List of distributed files.
DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
distdir : $(DISTFILES)
for file in $(DISTFILES); do \
if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
cp -p $$dir/$$file '$(distdir)'/$$file || exit 1; \
done
force : force :

View File

@@ -1,6 +1,6 @@
# Makefile for gperf/lib # Makefile for gperf/lib
# Copyright (C) 1989, 1992, 1993, 1998, 2002, 2009 Free Software Foundation, Inc. # Copyright (C) 1989, 1992, 1993, 1998, 2002, 2009, 2012 Free Software Foundation, Inc.
# Written by Douglas C. Schmidt <schmidt@ics.uci.edu> # Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
# and Bruno Haible <bruno@clisp.org>. # and Bruno Haible <bruno@clisp.org>.
# #
@@ -111,4 +111,26 @@ distclean : clean
maintainer-clean : distclean maintainer-clean : distclean
# List of source files.
SOURCE_FILES = \
configure.ac Makefile.in \
getline.h getline.cc \
hash.h hash.cc \
getopt.h getopt.h.patch getopt.c getopt.c.patch getopt1.c
# List of distributed files imported from other packages.
IMPORTED_FILES =
# List of distributed files generated by autotools or Makefile.devel.
GENERATED_FILES = \
configure
# List of distributed files generated by "make".
DISTRIBUTED_BUILT_FILES =
# List of distributed files.
DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
distdir : $(DISTFILES)
for file in $(DISTFILES); do \
if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
cp -p $$dir/$$file '$(distdir)'/$$file || exit 1; \
done
force : force :

View File

@@ -1,6 +1,6 @@
# Makefile for gperf/src # Makefile for gperf/src
# Copyright (C) 1989, 1992, 1993, 1998, 2000, 2002, 2006, 2009 Free Software Foundation, Inc. # Copyright (C) 1989, 1992, 1993, 1998, 2000, 2002, 2006, 2009, 2012 Free Software Foundation, Inc.
# Written by Douglas C. Schmidt <schmidt@ics.uci.edu> # Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
# and Bruno Haible <bruno@clisp.org>. # and Bruno Haible <bruno@clisp.org>.
# #
@@ -140,4 +140,34 @@ distclean : clean
maintainer-clean : distclean maintainer-clean : distclean
# List of source files.
SOURCE_FILES = \
configure.ac Makefile.in \
version.cc $(VERSION_H) \
positions.cc $(POSITIONS_H) \
options.cc $(OPTIONS_H) \
keyword.cc $(KEYWORD_H) \
keyword-list.cc $(KEYWORD_LIST_H) \
input.cc $(INPUT_H) \
bool-array.cc $(BOOL_ARRAY_H) \
hash-table.cc $(HASH_TABLE_H) \
search.cc $(SEARCH_H) \
output.cc $(OUTPUT_H) \
main.cc
# List of distributed files imported from other packages.
IMPORTED_FILES =
# List of distributed files generated by autotools or Makefile.devel.
GENERATED_FILES = \
configure config.h.in config.h.msvc config.h_vms
# List of distributed files generated by "make".
DISTRIBUTED_BUILT_FILES =
# List of distributed files.
DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
distdir : $(DISTFILES)
for file in $(DISTFILES); do \
if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
cp -p $$dir/$$file '$(distdir)'/$$file || exit 1; \
done
force : force :

View File

@@ -1,6 +1,6 @@
# Makefile for gperf/tests # Makefile for gperf/tests
# Copyright (C) 1989, 1992-1993, 1995, 1998, 2000, 2002-2004, 2007-2009 Free Software Foundation, Inc. # Copyright (C) 1989, 1992-1993, 1995, 1998, 2000, 2002-2004, 2007-2009, 2012 Free Software Foundation, Inc.
# Written by Douglas C. Schmidt <schmidt@ics.uci.edu> # Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
# and Bruno Haible <bruno@clisp.org>. # and Bruno Haible <bruno@clisp.org>.
# #
@@ -337,5 +337,54 @@ distclean : clean
maintainer-clean : distclean maintainer-clean : distclean
# List of source files.
SOURCE_FILES = \
configure.ac Makefile.in \
test.c \
c.gperf c.exp \
ada.gperf ada-res.exp adadefs.gperf ada-pred.exp \
modula3.gperf modula.exp \
pascal.gperf pascal.exp \
lang-utf8.gperf lang-utf8.exp \
lang-ucs2.gperf lang-ucs2.in lang-ucs2.exp test2.c \
smtp.gperf \
c-parse.gperf c-parse.exp \
objc.gperf objc.exp \
chill.gperf chill.exp \
cplusplus.gperf cplusplus.exp \
java.gperf java.exp \
modula2.gperf modula2.exp \
test-4.exp \
gpc.gperf gpc.exp \
permut2.gperf permut2.exp \
permut3.gperf permut3.exp \
permutc2.gperf permutc2.exp \
charsets.gperf charsets.exp \
languages.gperf languages.exp \
incomplete.gperf incomplete.exp \
test-6.exp \
test-7.exp \
validate \
jstest1.gperf \
jstest2.gperf \
jstest3.gperf \
jstest4.gperf \
c++.gperf irc.gperf jscript.gperf makeinfo.gperf
# List of distributed files imported from other packages.
IMPORTED_FILES =
# List of distributed files generated by autotools or Makefile.devel.
GENERATED_FILES = \
configure
# List of distributed files generated by "make".
DISTRIBUTED_BUILT_FILES =
# List of distributed files.
DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
distdir : $(DISTFILES)
for file in $(DISTFILES); do \
if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
cp -p $$dir/$$file '$(distdir)'/$$file || exit 1; \
done
force : force :