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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
lang=ko
p=doc-linux
srcdir:=$(shell /bin/pwd)
docdir:=usr/share/doc
howtodir:=$(docdir)/HOWTO
export DH_COMPAT=2
configure: configure-stamp
configure-stamp:
dh_testdir
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
@for d in . koreanDoc mini translations ; do \
cd $(srcdir)/debian/$(p)-text-$(lang)/$(howtodir)/$(lang)-txt/$$d && \
find $(srcdir)/HOWTOs/$$d -maxdepth 1 -type f -exec cp '{}' . \; && \
mmv '*.gz' '#1.txt.gz' ; \
cd $(srcdir)/debian/$(p)-html-$(lang)/$(howtodir)/$(lang)-html/$$d && \
find $(srcdir)/HOWTOs/$$d/html -maxdepth 1 -type f -name '*.tar.gz' -exec tar zxvf '{}' -C . \; && \
find $(srcdir)/HOWTOs/$$d/html -maxdepth 1 -type f -name '*.html.gz' -exec cp '{}' . \; && gzip -d *.html.gz ; \
done
@find $(srcdir)/debian/$(p)-html-$(lang)/$(howtodir)/$(lang)-html \
-name '*.gz' ! -name '*.tar.gz' -exec gzip -d '{}' \;
@find $(srcdir)/debian/$(p)-html-$(lang)/$(howtodir)/$(lang)-html \
-name '*.bak' -o -name '*.rpm' -exec rm -f '{}' \;
@find $(srcdir)/debian/$(p)-html-$(lang)/$(howtodir)/$(lang)-html \
-name 'sgml' | xargs rm -rf
binary-arch:
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
gzip -9 $(srcdir)/debian/$(p)-html-$(lang)/$(docdir)/$(p)-html-$(lang)/changelog.Debian
dh_compress -p$(p)-text-$(lang)
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: binary clean binary-indep binary-arch binary install
|