/usr/src/gcc-4.7/debian/rules.d/binary-d.mk is in gcc-4.7-source 4.7.3-12ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | arch_binaries := $(arch_binaries) gdc
ifeq ($(with_libphobos),yes)
arch_binaries += libphobos
endif
p_gdc = gdc$(pkg_ver)
p_libphobos = libphobos$(libphobos_version)$(pkg_ver)-dev
d_gdc = debian/$(p_gdc)
d_libphobos = debian/$(p_libphobos)
gdc_include_dir := $(PF)/include/d$(libphobos_version)
dirs_gdc = \
$(PF)/bin \
$(PF)/share/man/man1 \
$(gdc_include_dir)/$(BASE_VERSION) \
$(gcc_lexec_dir)
files_gdc = \
$(PF)/bin/$(cmd_prefix)gdc$(pkg_ver) \
$(PF)/bin/$(cmd_prefix)gdmd$(pkg_ver) \
$(PF)/share/man/man1/gdc$(pkg_ver).1 \
$(PF)/share/man/man1/gdmd$(pkg_ver).1 \
$(gcc_lexec_dir)/cc1d
dirs_libphobos = \
$(PF)/lib \
$(gdc_include_dir)/$(BASE_VERSION) \
$(gcc_lib_dir)
files_libphobos = \
$(PF)/$(libdir)/libgphobos$(libphobos_version).a \
$(gdc_include_dir)/$(BASE_VERSION)
links_gdc = \
/$(gdc_include_dir)/$(BASE_VERSION) \
/$(gdc_include_dir)/$(GCC_VERSION) \
/$(docdir)/$(p_gcc)/README.Bugs \
/$(docdir)/$(p_gdc)/README.Bugs
$(binary_stamp)-gdc: $(install_stamp)
dh_testdir
dh_testroot
mv $(install_stamp) $(install_stamp)-tmp
rm -rf $(d_gdc)
dh_installdirs -p$(p_gdc) $(dirs_gdc)
dh_installdocs -p$(p_gdc) \
src/gcc/d/{README,GDC.html,History}
dh_installchangelogs -p$(p_gdc) src/gcc/d/ChangeLog
DH_COMPAT=2 dh_movefiles -p$(p_gdc) -X/zlib/ $(files_gdc)
ifneq ($(DEB_CROSS),yes)
ln -sf gdc$(pkg_ver) \
$(d_gdc)/$(PF)/bin/$(DEB_TARGET_GNU_TYPE)-gdc$(pkg_ver)
ln -sf gdc$(pkg_ver) \
$(d_gdc)/$(PF)/bin/$(TARGET_ALIAS)-gdc$(pkg_ver)
ln -sf gdc$(pkg_ver).1 \
$(d_gdc)/$(PF)/share/man/man1/$(DEB_TARGET_GNU_TYPE)-gdc$(pkg_ver).1
ln -sf gdc$(pkg_ver).1 \
$(d_gdc)/$(PF)/share/man/man1/$(TARGET_ALIAS)-gdc$(pkg_ver).1
ln -sf gdmd$(pkg_ver) \
$(d_gdc)/$(PF)/bin/$(DEB_TARGET_GNU_TYPE)-gdmd$(pkg_ver)
ln -sf gdmd$(pkg_ver) \
$(d_gdc)/$(PF)/bin/$(TARGET_ALIAS)-gdmd$(pkg_ver)
ln -sf gdmd$(pkg_ver).1 \
$(d_gdc)/$(PF)/share/man/man1/$(DEB_TARGET_GNU_TYPE)-gdmd$(pkg_ver).1
ln -sf gdmd$(pkg_ver).1 \
$(d_gdc)/$(PF)/share/man/man1/$(TARGET_ALIAS)-gdmd$(pkg_ver).1
endif
# Always needed by gdc.
cp $(srcdir)/gcc/d/druntime/object.di \
$(d_gdc)/$(gdc_include_dir)/$(BASE_VERSION)/
dh_link -p$(p_gdc) $(links_gdc)
dh_strip -p$(p_gdc)
dh_compress -p$(p_gdc)
dh_fixperms -p$(p_gdc)
dh_shlibdeps -p$(p_gdc)
dh_gencontrol -p$(p_gdc) -- -v$(DEB_GDC_VERSION) $(common_substvars)
dh_installdeb -p$(p_gdc)
dh_md5sums -p$(p_gdc)
dh_builddeb -p$(p_gdc)
find $(d_gdc) -type d -empty -delete
trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
$(binary_stamp)-libphobos: $(install_stamp)
dh_testdir
dh_testroot
mv $(install_stamp) $(install_stamp)-tmp
rm -rf $(d_libphobos)
dh_installdirs -p$(p_libphobos) $(dirs_libphobos)
DH_COMPAT=2 dh_movefiles -p$(p_libphobos) -X/zlib/ $(files_libphobos)
# better to have it there, avoid conflicts
mv $(d_libphobos)/$(PF)/$(libdir)/libgphobos$(libphobos_version).a \
$(d_libphobos)/$(gcc_lib_dir)
# included in gdc package
rm -f $(d_libphobos)/$(gdc_include_dir)/$(BASE_VERSION)/object.di
# no need to have it twice
dh_link -p$(p_libphobos) \
/$(PF)/share/doc/$(p_gdc) /$(PF)/share/doc/$(p_libphobos)
dh_strip -p$(p_libphobos)
dh_compress -p$(p_libphobos)
dh_fixperms -p$(p_libphobos)
dh_shlibdeps -p$(p_libphobos)
dh_gencontrol -p$(p_libphobos) -- -v$(DEB_GDC_VERSION) $(common_substvars)
dh_installdeb -p$(p_libphobos)
dh_md5sums -p$(p_libphobos)
dh_builddeb -p$(p_libphobos)
find $(d_libphobos) -type d -empty -delete
trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
|