summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authordoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2011-12-16 00:00:43 +0000
committerdoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2011-12-16 00:00:43 +0000
commit1ed753c7d69c8340eebc068b1d5b31d2554ce811 (patch)
treef16299769978d52cdec478852450851575bca99a /debian/rules
downloadgcc-47-1ed753c7d69c8340eebc068b1d5b31d2554ce811.tar.gz
- create a gcc-4.7 branch
git-svn-id: svn://svn.debian.org/svn/gcccvs/branches/sid/gcc-4.7@5753 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules110
1 files changed, 110 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6166c84
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,110 @@
+#! /usr/bin/make -f
+# -*- makefile -*-
+# Build rules for gcc (>= 2.95) and gcc-snapshot
+# Targets found in this makefile:
+# - unpack tarballs
+# - patch sources
+# - (re)create the control file
+# - create a debian/rules.parameters file, which is included
+# by debian/rules2
+# All other targets are passed to the debian/rules2 file
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+unexport LANG LC_ALL LC_CTYPE LC_COLLATE LC_TIME LC_NUMERIC LC_MESSAGES
+
+default: build
+
+include debian/rules.defs
+include debian/rules.unpack
+include debian/rules.patch
+
+control: $(control_dependencies)
+ -mkdir -p $(stampdir)
+ $(MAKE) -f debian/rules.conf $@
+
+configure: $(configure_dependencies)
+$(configure_stamp): control $(unpack_stamp) $(patch_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(configure_dummy_stamp): control
+ $(MAKE) -f debian/rules2 $@
+$(configure_hppa64_stamp): $(build_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(configure_neon_stamp): $(build_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(configure_spu_stamp): $(build_stamp)
+ $(MAKE) -f debian/rules2 $@
+
+pre-build:
+#ifneq (,$(filter $(distrelease),squeeze sid))
+#ifeq (,$(filter $(DEB_TARGET_ARCH),amd64 i386))
+# @echo explicitely fail the build for $(DEB_TARGET_ARCH)
+# @echo no bug report required. please ask the port maintainers if they support gcc-4.5.
+# false
+#endif
+#endif
+
+build: pre-build $(build_dependencies)
+$(build_stamp): $(unpack_stamp) $(patch_stamp) $(configure_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(build_dummy_stamp): $(configure_dummy_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(build_javadoc_stamp): $(build_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(build_hppa64_stamp): $(configure_hppa64_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(build_neon_stamp): $(configure_neon_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(build_spu_stamp): $(configure_spu_stamp)
+ $(MAKE) -f debian/rules2 $@
+
+check: $(check_stamp)
+$(check_stamp): $(build_stamp)
+ $(MAKE) -f debian/rules2 $@
+
+clean:
+ rm -rf $(stampdir)
+# remove temporary dirs used for unpacking
+ rm -rf $(gcc_srcdir) $(gdc_srcdir) d
+ -$(MAKE) -f debian/rules2 $@
+ rm -rf $(srcdir)* $(builddir)* debian/tmp* html
+ rm -f bootstrap-* first-move-stamp
+ rm -f autotools_files
+ rm -f debian/*.tmp
+ rm -f debian/soname-cache
+ find debian -name '.#*' | xargs -r rm -f
+ rm -f $(series_file)*
+ dh_clean
+
+install: $(install_dependencies)
+$(install_stamp): $(build_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(install_snap_stamp): $(build_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(install_dummy_stamp): $(build_dummy_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(install_hppa64_stamp): $(build_hppa64_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(install_neon_stamp): $(build_neon_stamp)
+ $(MAKE) -f debian/rules2 $@
+$(install_spu_stamp): $(build_spu_stamp)
+ $(MAKE) -f debian/rules2 $@
+
+html-docs doxygen-docs update-doxygen-docs update-ada-files xxx:
+ $(MAKE) -f debian/rules2 $@
+
+binary-indep binary-arch binary: install
+ $(MAKE) -f debian/rules2 $@
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+release:
+ foo=$(shell basename $(CURDIR)); \
+ if [ "$$foo" != "gcc-3.4" ]; then \
+ find -name CVS -o -name .cvsignore -o -name '.#*' | \
+ xargs rm -rf; \
+ fi
+
+.PHONY: build clean binary-indep binary-arch binary release