summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-07-01 14:46:34 +0200
committerBruno Haible <bruno@clisp.org>2012-07-01 15:40:25 +0200
commit9386cd6fc42a33d91712cf2181ddb226145d37a7 (patch)
tree1184c8753382f2749c6cff5bd069e258749cb3fc
parentb392998058fcd01996e63bb7657fdeb3995ceb95 (diff)
downloadgperf-9386cd6fc42a33d91712cf2181ddb226145d37a7.tar.gz
Create tarballs through an Automake-like "make dist" command.
-rw-r--r--ChangeLog21
-rw-r--r--Makefile.in39
-rw-r--r--doc/Makefile.in32
-rw-r--r--lib/Makefile.in24
-rw-r--r--src/Makefile.in32
-rw-r--r--tests/Makefile.in51
6 files changed, 194 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index b0421b5..35a519d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* configure: Regenerated with autoconf-2.69.
diff --git a/Makefile.in b/Makefile.in
index 18c7b23..12c8da6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,6 +1,6 @@
# 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>
# and Bruno Haible <bruno@clisp.org>.
#
@@ -58,5 +58,42 @@ maintainer-clean : force
cd @subdir@; if test -f Makefile; then $(MAKE) maintainer-clean; fi
$(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 :
diff --git a/doc/Makefile.in b/doc/Makefile.in
index fc06c15..3ec09a2 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -1,6 +1,6 @@
# 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>
# and Bruno Haible <bruno@clisp.org>.
#
@@ -147,5 +147,35 @@ distclean : clean
maintainer-clean : distclean
$(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 :
diff --git a/lib/Makefile.in b/lib/Makefile.in
index 16d2a28..60cd28d 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -1,6 +1,6 @@
# 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>
# and Bruno Haible <bruno@clisp.org>.
#
@@ -111,4 +111,26 @@ distclean : clean
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 :
diff --git a/src/Makefile.in b/src/Makefile.in
index c04f435..1fecb3d 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1,6 +1,6 @@
# 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>
# and Bruno Haible <bruno@clisp.org>.
#
@@ -140,4 +140,34 @@ distclean : clean
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 :
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 8db9383..f9fa1c4 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -1,6 +1,6 @@
# 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>
# and Bruno Haible <bruno@clisp.org>.
#
@@ -337,5 +337,54 @@ distclean : clean
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 :