| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export ICMAKE_CPPSTD = --std=c++26 |
| 4 |
|
| 5 |
export DH_VERBOSE=1 |
| 6 |
|
| 7 |
# tell texlive to respect SOURCE_DATE_EPOCH for reproducible builds |
| 8 |
export FORCE_SOURCE_DATE=1 |
| 9 |
|
| 10 |
export USCAN_SYMLINK=rename |
| 11 |
|
| 12 |
CXX=g++ |
| 13 |
CFLAGS = -Wall -g -O2 |
| 14 |
|
| 15 |
|
| 16 |
%: |
| 17 |
dh $@ |
| 18 |
|
| 19 |
override_dh_auto_clean: |
| 20 |
rm -rf build-stamp debian/c++-annotations |
| 21 |
./build clean |
| 22 |
dh_auto_clean |
| 23 |
|
| 24 |
override_dh_auto_build: |
| 25 |
./build programs |
| 26 |
./build docs |
| 27 |
./build man |
| 28 |
|
| 29 |
override_dh_auto_install: |
| 30 |
dh_installchangelogs -A changelog |
| 31 |
dh_installdocs -A README README.papersize README.legalese |
| 32 |
dh_installman |
| 33 |
cp -a tmp/docs/latex/cplusplus.pdf debian/c++-annotations-pdf/usr/share/doc/c++-annotations/ |
| 34 |
cp -a tmp/docs/latex/cplusplusus.pdf debian/c++-annotations-pdf/usr/share/doc/c++-annotations/ |
| 35 |
rm tmp/docs/latex/cplusplus.aux tmp/docs/latex/cplusplus.dvi tmp/docs/latex/cplusplus.idx tmp/docs/latex/cplusplus.log |
| 36 |
rm tmp/docs/latex/cplusplus.pdf tmp/docs/latex/cplusplus.ps tmp/docs/latex/cplusplus.toc |
| 37 |
rm tmp/docs/latex/cplusplusus.aux tmp/docs/latex/cplusplusus.dvi tmp/docs/latex/cplusplusus.idx tmp/docs/latex/cplusplusus.log |
| 38 |
rm tmp/docs/latex/cplusplusus.pdf tmp/docs/latex/cplusplusus.ps tmp/docs/latex/cplusplusus.toc |
| 39 |
cp -ra tmp/docs/latex debian/c++-annotations-latex/usr/share/doc/c++-annotations/ |
| 40 |
cp -a README.builddvips debian/c++-annotations-latex/usr/share/doc/c++-annotations/latex/ |
| 41 |
cp -a tmp/docs/txt/cplusplus.txt debian/c++-annotations-txt/usr/share/doc/c++-annotations/ |
| 42 |
cp -ra contrib debian/c++-annotations-contrib/usr/share/doc/c++-annotations/ |
| 43 |
cp -ra contrib debian/c++-annotations-html/usr/share/doc/c++-annotations/html/ |
| 44 |
cp -ra contributions debian/c++-annotations-contrib/usr/share/doc/c++-annotations/ |
| 45 |
cp -ra tmp/docs/html debian/c++-annotations-html/usr/share/doc/c++-annotations/ |
| 46 |
mkdir debian/c++-annotations/usr/share/doc/c++-annotations/examples |
| 47 |
for e in `find -type d -name examples | grep -v ^./debian`; \ |
| 48 |
do cp -r --parents "$$e" debian/c++-annotations/usr/share/doc/c++-annotations/examples; done |
| 49 |
|
| 50 |
override_dh_compress: |
| 51 |
dh_compress -A -X.html -X.gif -X.pdf |