| 1 |
#!/usr/bin/make -f |
| 2 |
# Made with the aid of dh_make, by Petr Cech. |
| 3 |
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. |
| 4 |
# Some lines taken from debmake, by Christoph Lameter. |
| 5 |
|
| 6 |
build: |
| 7 |
dh_testdir |
| 8 |
make lib CXXFLAGS+="-fPIC -DSILENT" LDFLAGS+="-Wl,-soname,libunrar.so.0" |
| 9 |
|
| 10 |
clean: |
| 11 |
dh_testdir |
| 12 |
dh_testroot |
| 13 |
|
| 14 |
make clean |
| 15 |
rm -f libunrar.so |
| 16 |
|
| 17 |
dh_clean |
| 18 |
|
| 19 |
# Build architecture-independent files here. |
| 20 |
binary-indep: build |
| 21 |
# We have nothing to do by default. |
| 22 |
|
| 23 |
# Build architecture-dependent files here. |
| 24 |
binary-arch: build |
| 25 |
dh_testdir |
| 26 |
dh_testroot |
| 27 |
dh_prep |
| 28 |
dh_installdirs |
| 29 |
|
| 30 |
install -o root -g root -s -m 0644 libunrar.so debian/libunrar/usr/lib |
| 31 |
install -m 0644 debian/lintian/libunrar debian/libunrar/usr/share/lintian/overrides |
| 32 |
|
| 33 |
dh_link usr/lib/libunrar.so usr/lib/libunrar.so.0 |
| 34 |
dh_installdocs |
| 35 |
dh_installchangelogs |
| 36 |
dh_strip |
| 37 |
dh_compress |
| 38 |
dh_fixperms |
| 39 |
dh_installdeb |
| 40 |
dh_shlibdeps |
| 41 |
dh_gencontrol |
| 42 |
dh_md5sums |
| 43 |
dh_builddeb |
| 44 |
|
| 45 |
binary: binary-indep binary-arch |
| 46 |
.PHONY: build clean binary-indep binary-arch binary |