Fix socket constants.
[glibc.git] / Makefile
blob657fdeef73831fcd7b3b960ba73df0d022b89462
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: ChangeLog.%
33 @rm -fr $(basename $@)
34 $(MAKE) -q `find $(sysdeps-of-stem) -name configure`
35 $(do-export) ports/ChangeLog.$* $(addprefix ports/,$(sysdeps-of-stem))
36 mv $(basename $@)/ports/* $(basename $@)/
37 rmdir $(basename $@)/ports
38 find $(basename $@) -name configure -print | xargs touch
39 tar cf $@ $(basename $@)
40 rm -fr $(basename $@)
42 %.bz2: %; bzip2 -9vk $<
43 %.gz: %; gzip -9vnc $< > $@.new && mv -f $@.new $@