#!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk include /usr/share/dpkg/architecture.mk export DH_VERBOSE = 1 # make clean does not clean properly, so building out of source BUILD = $(CURDIR)/build-tree LDFLAGS += -Wl,--as-needed LISP := sbcl oa_libdir := /usr/lib/open-axiom PACKAGE := open-axiom SVN_REPO := svn://svn.code.sf.net/p/open-axiom/code/trunk DEBIAN_PATH := $(abspath $(dir $(firstword $(MAKEFILE_LIST)))) SRC_VERSION := $(shell dpkg-parsechangelog -l$(DEBIAN_PATH)/changelog | awk '/^Version:/ {sub(/-[^-]*/, "", $$2); print $$2}') SVN_REVISION := $(shell echo $(SRC_VERSION) | sed -r 's,.+svn([0-9]+),\1,') TARBALL := $(PACKAGE)_$(SRC_VERSION).orig.tar.xz .PHONY: get-orig-source get-orig-source: rm -rf get-orig-source $(TARBALL) mkdir get-orig-source svn export -r $(SVN_REVISION) $(SVN_REPO) \ get-orig-source/$(PACKAGE)-$(SRC_VERSION) tar cJf $(TARBALL) -C get-orig-source \ $(PACKAGE)-$(SRC_VERSION) @rm -rf get-orig-source @echo " "$(TARBALL)" created; move it to the right destination to build the package" debian/open-axiom.1: build-stamp help2man --no-info \ --version-string='$(SRC_VERSION)' \ -m 'The open scientific computation platform' \ -n 'open source platform for symbolic, algebraic, and numerical computations' \ $(BUILD)/src/driver/open-axiom > $@ # --disable-gcl is for included GCL: configure-stamp: dh_testdir dh_autotools-dev_updateconfig # aclocal.m4 is older than configure; rebuilding aclocal.m4 requires aclocal-1.13 touch aclocal.m4 config/*.m4 -r configure.ac $(LISP) --version