obsolete files removed
[glibc-ports.git] / Makefile
blob79c7e0bc42f6d8c7401c9ed2956520802df9ffc4
1 # This makefile is not used by the glibc build process.
2 # It's purely for making ports tarballs.
4 .PHONY: dist dist-ports
5 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)
18 md5sum $^
19 $(distname).tar:
20 @rm -fr $(basename $@)
21 $(MAKE) -q `find sysdeps -name configure`
22 $(do-export) ports
23 find $(basename $@) -name configure -print | xargs touch
24 tar cf $@ $(basename $@)
25 rm -fr $(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)
31 md5sum $^
32 glibc-port-%-$(dist-version).tar: configure ChangeLog
33 @rm -fr $(basename $@)
34 $(do-export) -l ports
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 $@)
42 rm -fr $(basename $@)