summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-06-20 01:43:43 +0000
committerRoland McGrath <roland@gnu.org>2004-06-20 01:43:43 +0000
commit62780824a05b1318fbb0646192638f45fe810ae1 (patch)
tree53fae0503a981603e53e1c93df3046c1b37cc2f2 /Makefile
parentb960842876ae1d7f777045a9871dc866b6052bdc (diff)
downloadglibc-62780824a05b1318fbb0646192638f45fe810ae1.tar.gz
glibc-62780824a05b1318fbb0646192638f45fe810ae1.tar.xz
glibc-62780824a05b1318fbb0646192638f45fe810ae1.zip
* Makerules (compile-mkdep-flags): Add -MT $@.
	* Makefile (dist, tag-for-dist): New targets.
	(files-for-dist, tag-of-stem): New variables.
	(glibc-%.tar glibc-linuxthreads-%.tar): New pattern rule.
	Make tar files using cvs export.
	(%.bz2, %.gz, tag-%): New pattern rules.
	(distribute): Variable removed.
	(+subdir_targets): Remove distinfo targets.
	(echo_subdirs, echo-distinfo, parent_echo-distinfo): Targets removed.
	(rpm/%): Pattern rule removed.
	* rpm/Makefile, rpm/rpmrc, rpm/template: Ancient cruft files removed.
	* Rules (subdir_echo-headers, subdir_echo-distinfo, subdir_dist):
	Targets removed.
	* Makerules (dist, subdir_distinfo): Targets removed.
	($(objpfx)distinfo): Depend on $(distribute).
	* Make-dist: File removed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile71
1 files changed, 27 insertions, 44 deletions
diff --git a/Makefile b/Makefile
index a422ffd22b..da743e4f51 100644
--- a/Makefile
+++ b/Makefile
@@ -61,8 +61,8 @@ endif # $(AUTOCONF) = no
 +subdir_targets	:= subdir_lib objects objs others subdir_mostlyclean	\
 		   subdir_clean subdir_distclean subdir_realclean	\
 		   tests xtests subdir_lint.out				\
-		   subdir_update-abi subdir_check-abi subdir_distinfo	\
-		   subdir_echo-headers subdir_echo-distinfo		\
+		   subdir_update-abi subdir_check-abi 			\
+		   subdir_echo-headers 					\
 		   subdir_install					\
 		   subdir_testclean					\
 		   $(addprefix install-, no-libc.a bin lib data headers others)
@@ -259,47 +259,9 @@ ifdef objdir
 endif
 	-rm -f $(sysdep-$(distclean-1))
 
-.PHONY: echo_subdirs
-echo_subdirs:;@echo '$(subdirs)'
-
-.PHONY: echo-distinfo parent_echo-distinfo
-echo-distinfo: parent_echo-distinfo subdir_echo-distinfo
-parent_echo-distinfo:
-	@echo $(addprefix +header+,$(headers)) \
-	      $(addprefix +nodist+,$(generated))
-
-
 # Make the distribution tarfile.
+.PHONY: dist tag-for-dist
 
-distribute  :=	README README.libm INSTALL FAQ FAQ.in NOTES NEWS BUGS	\
-		PROJECTS COPYING.LIB COPYING ChangeLog ChangeLog.[0-9]	\
-		ChangeLog.1[0-9] Makefile Makeconfig Makerules Rules	\
-		Make-dist MakeTAGS extra-lib.mk o-iterator.mk configure	\
-		extra-modules.mk					\
-		configure.in aclocal.m4 config.h.in config.make.in	\
-		config-name.in Makefile.in sysdep.h set-hooks.h		\
-		libc-symbols.h version.h shlib-versions rpm/Makefile	\
-		rpm/template rpm/rpmrc abi-tags stub-tag.h		\
-		test-skeleton.c include/des.h include/libc-internal.h	\
-		include/shlib-compat.h include/pthread.h Versions.def	\
-		cppflags-iterator.mk tls.make.c include/caller.h	\
-		include/stubs-prologue.h include/gnu/stubs.h		\
-		include/atomic.h bits/atomic.h symbol-hacks.h		\
-		INTERFACE CONFORMANCE NAMESPACE LICENSES	        \
-		$(addprefix scripts/,					\
-			    rellns-sh config.sub config.guess		\
-			    mkinstalldirs move-if-change install-sh	\
-			    test-installation.pl gen-FAQ.pl versions.awk\
-			    gen-sorted.awk abi-versions.awk abilist.awk	\
-			    firstversions.awk documented.sh cpp		\
-			    output-format.sed gen-as-const.awk		\
-			    merge-abilist.awk extract-abilist.awk	\
-			    rpm2dynsym.sh				\
-			    )						\
-		$(wildcard scripts/data/*.data)				\
-		$(wildcard abilist/*.abilist)
-
-distribute := $(strip $(distribute))
 generated := $(generated) stubs.h
 
 README: README.template version.h
@@ -311,6 +273,30 @@ ifeq ($(with-cvs),yes)
 	test ! -d CVS || cvs $(CVSOPTS) commit -m'Remade for $(release)-$(version)' $@
 endif
 
+files-for-dist := README FAQ INSTALL NOTES configure
+
+tag-of-stem = glibc-$(subst .,_,$*)
+
+glibc-%.tar glibc-linuxthreads-%.tar: $(files-for-dist)
+	@rm -fr glibc-$*
+	cvs $(CVSOPTS) -Q export -d glibc-$* -r $(tag-of-stem) libc
+	tar cf glibc-linuxthreads-$*.tar -C glibc-$* \
+	    linuxthreads linuxthreads_db
+	rm -rf $(addprefix glibc-$*/,linuxthreads linuxthreads_db)
+	tar cf glibc-$*.tar glibc-$*
+	rm -fr glibc-$*
+
+%.bz2: %; bzip2 -9vk $<
+%.gz: %; gzip -9vnc $< > $@.new && mv -f $@.new $@
+
+dist: $(foreach Z,.bz2 .gz,glibc-$(version).tar$Z \
+		           glibc-linuxthreads-$(version).tar$Z)
+	md5sum $^
+
+tag-for-dist: tag-$(version)
+tag-%: $(files-for-dist)
+	cvs $(CVSOPTS) -Q tag -c $(tag-of-stem)
+
 define format-me
 @rm -f $@
 makeinfo --no-validate --no-warn --no-headers $< -o $@
@@ -327,9 +313,6 @@ ifeq ($(with-cvs),yes)
 endif
 FORCE:
 
-rpm/%: subdir_distinfo
-	$(MAKE) $(PARALLELMFLAGS) -C $(@D) $(@F)
-
 iconvdata/% localedata/% po/% manual/%:
 	$(MAKE) $(PARALLELMFLAGS) -C $(@D) $(@F)