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_hppa64_stamp): $(build_stamp)
33
$(MAKE) -f debian/rules2 $@
34
$(configure_neon_stamp): $(build_stamp)
35
$(MAKE) -f debian/rules2 $@
38
#ifneq (,$(filter $(distrelease),squeeze sid))
39
#ifeq (,$(filter $(DEB_TARGET_ARCH),amd64 i386))
40
# @echo explicitely fail the build for $(DEB_TARGET_ARCH)
41
# @echo no bug report required. please ask the port maintainers if they support gcc-4.5.
46
build: pre-build $(build_dependencies)
49
$(build_stamp): $(unpack_stamp) $(patch_stamp) $(configure_stamp)
50
$(MAKE) -f debian/rules2 $@
51
$(build_dummy_stamp): $(configure_dummy_stamp)
52
$(MAKE) -f debian/rules2 $@
53
$(build_javadoc_stamp): $(build_stamp)
54
$(MAKE) -f debian/rules2 $@
55
$(build_hppa64_stamp): $(configure_hppa64_stamp)
56
$(MAKE) -f debian/rules2 $@
57
$(build_neon_stamp): $(configure_neon_stamp)
58
$(MAKE) -f debian/rules2 $@
61
$(check_stamp): $(build_stamp)
62
$(MAKE) -f debian/rules2 $@
66
# remove temporary dirs used for unpacking
67
rm -rf $(gcc_srcdir) $(gdc_srcdir)
68
-$(MAKE) -f debian/rules2 $@
69
rm -rf $(srcdir)* $(builddir)* debian/tmp* html
70
rm -f bootstrap-* first-move-stamp
73
rm -f debian/soname-cache
74
find debian -name '.#*' | xargs -r rm -f
78
install: $(install_dependencies)
79
$(install_stamp): $(build_stamp)
80
$(MAKE) -f debian/rules2 $@
81
$(install_snap_stamp): $(build_stamp)
82
$(MAKE) -f debian/rules2 $@
83
$(install_dummy_stamp): $(build_dummy_stamp)
84
$(MAKE) -f debian/rules2 $@
85
$(install_hppa64_stamp): $(build_hppa64_stamp)
86
$(MAKE) -f debian/rules2 $@
87
$(install_neon_stamp): $(build_neon_stamp)
88
$(MAKE) -f debian/rules2 $@
90
html-docs doxygen-docs update-doxygen-docs update-ada-files xxx:
91
$(MAKE) -f debian/rules2 $@
93
binary-indep binary-arch binary: install
94
$(MAKE) -f debian/rules2 $@
97
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
100
foo=$(shell basename $(CURDIR)); \
101
if [ "$$foo" != "gcc-3.4" ]; then \
102
find -name CVS -o -name .cvsignore -o -name '.#*' | \
106
.PHONY: build clean binary-indep binary-arch binary release