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
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS=$(DEB_BUILD_MAINT_OPTIONS) dpkg-buildflags
CFLAGS=$(shell $(dpkg_buildflags) --get CFLAGS)
CPPFLAGS=$(shell $(dpkg_buildflags) --get CPPFLAGS)
LDFLAGS=$(shell $(dpkg_buildflags) --get LDFLAGS)
build-indep:
build-arch: build-arch-stamp
build-arch-stamp:
dh_testdir
dh_autotools-dev_updateconfig
CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr
$(MAKE)
touch $@
build: build-indep build-arch
clean:
dh_testdir
dh_testroot
rm -f build*-stamp
[ ! -f Makefile ] || $(MAKE) distclean
rm -f libtool stamp-*
dh_autotools-dev_restoreconfig
dh_clean
install: build-arch
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install prefix=$(CURDIR)/debian/skktools/usr
dh_install debian/update-skkdic usr/sbin
dh_install debian/skk2cdb usr/bin
dh_install *.el usr/share/emacs/site-lisp
for f in *.awk *.rb *.scm *.py \
convert2skk/*.pl \
convert2skk/*.rb \
convert2skk/*.sh \
convert2skk/*.awk \
convert2skk/*.sed \
convert2skk/adddummy \
convert2skk/list2skk \
convert2skk/pubdic2list \
convert2skk/removedummy \
convert2skk/skk2list \
dbm/makedbmdic* filters/*.rb; do \
touch "debian/skktools/usr/share/skktools/$${f}"; \
head -1 "$${f}" | grep '^
case "$${f}" in \
*.awk) \
echo '
*.sed) \
echo '
esac; \
LC_ALL=C perl -pe 's!/usr/local!/usr!g;s!bin/jperl[0-9]?!bin/perl!g;s!"qkc"!"nkf -e"
chmod 755 "debian/skktools/usr/share/skktools/$${f}"; \
done
cat filters/README* >debian/skktools/usr/share/doc/skktools/README.filters
cat convert2skk/README* >debian/skktools/usr/share/doc/skktools/README.convert2skk
cat */read.me >debian/skktools/usr/share/doc/skktools/README.jperl
binary-indep:
binary-arch: install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build-indep build-arch build clean binary-indep binary-arch binary install
|