3
# Build rules for gcc (>= 2.95) and gcc-snapshot
4
# Targets found in this makefile:
7
# - (re)create the control file
8
# - create a debian/rules.parameters file, which is included
10
# All other targets are passed to the debian/rules2 file
12
# Uncomment this to turn on verbose mode.
15
unexport LANG LC_ALL LC_CTYPE LC_COLLATE LC_TIME LC_NUMERIC LC_MESSAGES
19
include debian/rules.defs
20
include debian/rules.unpack
21
include debian/rules.patch
23
control: $(control_dependencies)
25
$(MAKE) -f debian/rules.conf $@
27
configure: $(configure_dependencies)
28
$(configure_stamp): control $(unpack_stamp) $(patch_stamp)
29
$(MAKE) -f debian/rules2 $@
30
$(configure_dummy_stamp): control
31
$(MAKE) -f debian/rules2 $@
32
$(configure_jit_stamp): control
33
$(MAKE) -f debian/rules2 $@
34
$(configure_hppa64_stamp): $(build_stamp)
35
$(MAKE) -f debian/rules2 $@
36
$(configure_neon_stamp): $(build_stamp)
37
$(MAKE) -f debian/rules2 $@
40
#ifneq (,$(filter $(distrelease),squeeze sid))
41
#ifeq (,$(filter $(DEB_TARGET_ARCH),amd64 i386))
42
# @echo explicitely fail the build for $(DEB_TARGET_ARCH)
43
# @echo no bug report required. please ask the port maintainers if they support gcc-4.5.
48
build: pre-build $(build_dependencies)
51
$(build_stamp): $(unpack_stamp) $(patch_stamp) $(configure_stamp)
52
$(MAKE) -f debian/rules2 $@
53
$(build_dummy_stamp): $(configure_dummy_stamp)
54
$(MAKE) -f debian/rules2 $@
55
$(build_jit_stamp): $(configure_jit_stamp)
56
$(MAKE) -f debian/rules2 $@
57
$(build_javadoc_stamp): $(build_stamp)
58
$(MAKE) -f debian/rules2 $@
59
$(build_hppa64_stamp): $(configure_hppa64_stamp)
60
$(MAKE) -f debian/rules2 $@
61
$(build_neon_stamp): $(configure_neon_stamp)
62
$(MAKE) -f debian/rules2 $@
65
$(check_stamp): $(build_stamp)
66
$(MAKE) -f debian/rules2 $@
70
# remove temporary dirs used for unpacking
71
rm -rf $(gcc_srcdir) $(gdc_srcdir)
72
-$(MAKE) -f debian/rules2 $@
73
rm -rf $(srcdir)* $(builddir)* debian/tmp* html
74
rm -f bootstrap-* first-move-stamp
77
rm -f debian/soname-cache
78
find debian -name '.#*' | xargs -r rm -f
82
install: $(install_dependencies)
83
$(install_stamp): $(build_stamp)
84
$(MAKE) -f debian/rules2 $@
85
$(install_snap_stamp): $(build_stamp)
86
$(MAKE) -f debian/rules2 $@
87
$(install_dummy_stamp): $(build_dummy_stamp)
88
$(MAKE) -f debian/rules2 $@
89
$(install_jit_stamp): $(build_jit_stamp)
90
$(MAKE) -f debian/rules2 $@
91
$(install_hppa64_stamp): $(build_hppa64_stamp)
92
$(MAKE) -f debian/rules2 $@
93
$(install_neon_stamp): $(build_neon_stamp)
94
$(MAKE) -f debian/rules2 $@
96
html-docs doxygen-docs update-doxygen-docs update-ada-files xxx:
97
$(MAKE) -f debian/rules2 $@
99
binary-indep binary-arch binary: install
100
$(MAKE) -f debian/rules2 $@
103
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
106
foo=$(shell basename $(CURDIR)); \
107
if [ "$$foo" != "gcc-3.4" ]; then \
108
find -name CVS -o -name .cvsignore -o -name '.#*' | \
113
.PHONY: build clean binary-indep binary-arch binary release