fc49094260
* Makefile ($(distname).tar): Fail if sysdeps/.../configure files are not all up to date. Touch configure files after cvs export. (glibc-port-%-$(dist-version).tar): Likewise.
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
# This boilerplate is necessary just because any add-on directory
|
|
# gets added as a normal subdirectory for the glibc build process.
|
|
|
|
subdir = ports
|
|
|
|
include ../Rules
|
|
|
|
.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 $@)
|
|
$(MAKE) -q `find sysdeps -name configure`
|
|
$(do-export) ports
|
|
find $(basename $@) -name configure -print | xargs touch
|
|
tar cf $@ $(basename $@)
|
|
rm -fr $(basename $@)
|
|
|
|
sysdeps-of-stem = sysdeps/$* sysdeps/unix/sysv/linux/$*
|
|
|
|
.PRECIOUS: %.gz %.bz2 # Don't delete output as intermediate files.
|
|
dist-port-%: $(foreach Z,.bz2 .gz,glibc-port-%-$(dist-version).tar$Z)
|
|
md5sum $^
|
|
glibc-port-%-$(dist-version).tar: configure ChangeLog
|
|
@rm -fr $(basename $@)
|
|
$(do-export) -l ports
|
|
rm -f $(basename $@)/ChangeLog.[a-z]*
|
|
$(MAKE) -q `find $(sysdeps-of-stem) -name configure`
|
|
$(do-export) ports/ChangeLog.$* $(addprefix ports/,$(sysdeps-of-stem))
|
|
mv $(basename $@)/ports/* $(basename $@)/
|
|
rmdir $(basename $@)/ports
|
|
find $(basename $@) -name configure -print | xargs touch
|
|
tar cf $@ $(basename $@)
|
|
rm -fr $(basename $@)
|