#!/usr/bin/make -f
# debian/rules for abook
+# copyright 2003-2008 by Gerfried Fuchs <rhonda@debian.at>
+# Licenced the same way as abook itself
+
PKG = abook
TMP = $(CURDIR)/debian/$(PKG)
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
+ STRIP = true
endif
cd $(TMP) && $(INSTALL_DIR) usr/share/doc/$(PKG)/examples \
usr/share/doc/$(PKG)/contrib
$(MAKE) prefix=$(TMP)/usr install INSTALL_PROGRAM="$(INSTALL_PROGRAM)"
+ test "$(STRIP)" != true || strip \
+ --remove-section=.comment --remove-section=.note \
+ $(TMP)/usr/bin/abook
$(INSTALL_FILE) ChangeLog $(TMP)/usr/share/doc/$(PKG)/changelog
$(INSTALL_FILE) ANNOUNCE AUTHORS BUGS FAQ README THANKS TODO \
$(TMP)/usr/share/doc/$(PKG)