1 # This makefile is not used by the glibc build process.
2 # It's purely for making ports tarballs.
4 .PHONY
: dist dist-ports
7 # Do `make dist dist-version=X.Y.Z' to make tar files of an older version.
8 dist-version
= $(version
)
9 # Also try 'dist-tag=some="-r TAG"' (or -D DATE) to get some tag rather
10 # than the release tag for X.Y.Z.
11 dist-tag
= -r glibc-
$(subst .
,_
,$(dist-version
))
13 distname
= glibc-ports-
$(dist-version
)
15 do-export
= cvs
$(CVSOPTS
) -Q
export -d
$(basename $@
) $(dist-tag
)
17 dist-ports
: $(foreach Z
,.bz2 .gz
,$(distname
).
tar$Z)
20 @
rm -fr
$(basename $@
)
21 $(MAKE
) -q
`find sysdeps -name configure`
23 find
$(basename $@
) -name configure
-print | xargs touch
24 tar cf
$@
$(basename $@
)
27 sysdeps-of-stem
= sysdeps
/$* sysdeps
/unix
/sysv
/linux
/$*
29 .PRECIOUS
: %.gz
%.bz2
# Don't delete output as intermediate files.
30 dist-port-
%: $(foreach Z
,.bz2 .gz
,glibc-port-
%-$(dist-version
).
tar$Z)
32 glibc-port-
%-$(dist-version
).
tar: configure ChangeLog
33 @
rm -fr
$(basename $@
)
35 rm -f
$(basename $@
)/ChangeLog.
[a-z
]*
36 $(MAKE
) -q
`find $(sysdeps-of-stem) -name configure`
37 $(do-export
) ports
/ChangeLog.
$* $(addprefix ports
/,$(sysdeps-of-stem
))
38 mv
$(basename $@
)/ports
/* $(basename $@
)/
39 rmdir
$(basename $@
)/ports
40 find
$(basename $@
) -name configure
-print | xargs touch
41 tar cf
$@
$(basename $@
)