Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 %:
3 dh $@ --buildsystem cargo
4
5 UNIC_DIR = /usr/share/unicode
6 GEN_SRC_DIR = ${CURDIR}/generate-sources
7 LINK_DIR = ${GEN_SRC_DIR}/target/tmp/data/17.0.0
8 DATA_DIR = ${CURDIR}/src/data
9
10 execute_after_dh_auto_clean:
11 rm -f ${CURDIR}/src/categories.rs
12 # these pregenerated files are regenerated during the build time
13 rm -f ${DATA_DIR}/characters.rs ${DATA_DIR}/grapheme_test.rs ${DATA_DIR}/grapheme_property.rs
14
15 execute_before_dh_auto_build:
16 # see debcargo.toml for the categories.rs as missing-source reasoning
17 cp ${CURDIR}/debian/missing-sources/categories.rs ${CURDIR}/src/
18 cp -r ${CURDIR}/debian/missing-sources/generate-sources ${GEN_SRC_DIR}
19 mkdir -p ${LINK_DIR}
20 ln -s ${UNIC_DIR}/UnicodeData.txt ${UNIC_DIR}/auxiliary/GraphemeBreakTest.txt \
21 ${UNIC_DIR}/DerivedCoreProperties.txt \
22 ${UNIC_DIR}/auxiliary/GraphemeBreakProperty.txt ${UNIC_DIR}/emoji/emoji-data.txt ${LINK_DIR}
23 cd ${GEN_SRC_DIR} && cargo run && cd -
24 rm -rf ${GEN_SRC_DIR}