2006-02-28 15:11:55 +08:00
|
|
|
# This makefile is not used by the glibc build process.
|
|
|
|
# It's purely for making ports tarballs.
|
2004-10-23 12:07:06 +08:00
|
|
|
|
|
|
|
.PHONY: dist dist-ports
|
|
|
|
dist: dist-ports
|
|
|
|
|
|
|
|
# Do `make dist dist-version=X.Y.Z' to make tar files of an older version.
|
|
|
|
dist-version = $(version)
|
|
|
|
# Also try 'dist-tag=some="-r TAG"' (or -D DATE) to get some tag rather
|
|
|
|
# than the release tag for X.Y.Z.
|
|
|
|
dist-tag = -r glibc-$(subst .,_,$(dist-version))
|
|
|
|
|
|
|
|
distname = glibc-ports-$(dist-version)
|
|
|
|
|
|
|
|
do-export = cvs $(CVSOPTS) -Q export -d $(basename $@) $(dist-tag)
|
|
|
|
|
|
|
|
dist-ports: $(foreach Z,.bz2 .gz,$(distname).tar$Z)
|
|
|
|
md5sum $^
|
|
|
|
$(distname).tar:
|
|
|
|
@rm -fr $(basename $@)
|
2005-05-24 14:13:03 +08:00
|
|
|
$(MAKE) -q `find sysdeps -name configure`
|
2004-10-23 12:07:06 +08:00
|
|
|
$(do-export) ports
|
2005-05-24 14:13:03 +08:00
|
|
|
find $(basename $@) -name configure -print | xargs touch
|
2004-10-23 12:07:06 +08:00
|
|
|
tar cf $@ $(basename $@)
|
|
|
|
rm -fr $(basename $@)
|
|
|
|
|
2005-05-24 14:13:03 +08:00
|
|
|
sysdeps-of-stem = sysdeps/$* sysdeps/unix/sysv/linux/$*
|
|
|
|
|
2004-10-23 12:07:06 +08:00
|
|
|
.PRECIOUS: %.gz %.bz2 # Don't delete output as intermediate files.
|
|
|
|
dist-port-%: $(foreach Z,.bz2 .gz,glibc-port-%-$(dist-version).tar$Z)
|
|
|
|
md5sum $^
|
2006-02-28 16:33:00 +08:00
|
|
|
glibc-port-%-$(dist-version).tar: ChangeLog.%
|
2004-10-23 12:07:06 +08:00
|
|
|
@rm -fr $(basename $@)
|
2005-05-24 14:13:03 +08:00
|
|
|
$(MAKE) -q `find $(sysdeps-of-stem) -name configure`
|
|
|
|
$(do-export) ports/ChangeLog.$* $(addprefix ports/,$(sysdeps-of-stem))
|
2004-10-23 12:07:06 +08:00
|
|
|
mv $(basename $@)/ports/* $(basename $@)/
|
|
|
|
rmdir $(basename $@)/ports
|
2005-05-24 14:13:03 +08:00
|
|
|
find $(basename $@) -name configure -print | xargs touch
|
2004-10-23 12:07:06 +08:00
|
|
|
tar cf $@ $(basename $@)
|
|
|
|
rm -fr $(basename $@)
|
2006-03-06 19:05:27 +08:00
|
|
|
|
|
|
|
%.bz2: %; bzip2 -9vk $<
|
|
|
|
%.gz: %; gzip -9vnc $< > $@.new && mv -f $@.new $@
|