#!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/simple-patchsys.mk include /usr/share/cdbs/1/class/gnome.mk include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk VARIANTS := gcalctool gcalctool-gtk DEB_CONFIGURE_EXTRA_FLAGS_gcalctool-gtk := --disable-gnome DEB_CONFIGURE_EXTRA_FLAGS_gcalctool := DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,-z,defs -Wl,-O1 -Wl,--as-needed" DEB_CONFIGURE_EXTRA_FLAGS := --disable-scrollkeeper DEB_BUILDDIR_gcalctool := gnome DEB_BUILDDIR_gcalctool-gtk := gtk #DEB_SRCDIR = $(CURDIR) $(patsubst %,configure/%,$(DEB_ARCH_PACKAGES)) :: configure/%: mkdir $(DEB_BUILDDIR_$(*)) || echo "directory already exists" $(MAKE) distclean || echo "no, I won't" cd $(DEB_BUILDDIR_$(*)) && \ $(DEB_CONFIGURE_SCRIPT_ENV) \ #$(DEB_CONFIGURE_SCRIPT) \ ../configure # $(DEB_CONFIGURE_NORMAL_ARGS) \ --disable-maintainer-mode \ $(cdbs_configure_flags) \ $(DEB_CONFIGURE_EXTRA_FLAGS) \ $(DEB_CONFIGURE_USER_FLAGS) \ $(DEB_CONFIGURE_EXTRA_FLAGS_$*) touch configure-stamp-$* $(patsubst %,build/%,$(DEB_ARCH_PACKAGES)) :: build/%: $(MAKE) -C $(DEB_BUILDDIR_$(*)) touch build-stamp-$* $(patsubst %,install/%,$(DEB_ARCH_PACKAGES)) :: install/%: make -C $(DEB_BUILDDIR_$(*)) install DESTDIR=$(CURDIR)/debian/$* touch install-stamp-$* binary-install/gcalctool:: ln -s gcalctool.1.gz debian/gcalctool/usr/share/man/man1/gnome-calculator.1.gz binary-install/gcalctool-gtk:: ln -s gcalctool.1.gz debian/gcalctool-gtk/usr/share/man/man1/gnome-calculator.1.gz binary-post-install/gcalctool:: rm -rf debian/gcalctool/var binary-post-install/gcalctool:: rm -rf debian/gcalctool-gtk/var