[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forge-Maintainers: Makefile simplifies your life
From: |
Carnë Draug |
Subject: |
Re: Forge-Maintainers: Makefile simplifies your life |
Date: |
Sat, 21 Feb 2015 19:32:39 +0000 |
On 21 February 2015 at 19:23, Oliver Heimlich <address@hidden> wrote:
> I have created a Makefile [1], which automates some regular package
> maintenance tasks. The Makefile is quite generic, but I have made some
> assumptions. It should work well with other packages with minor or no
> adjustments.
>
> I hope, it is useful for other package maintainers as well. Highlights:
>
> make release: Does most of the steps from [2]. Example output:
> …
> c50bb698a690682fc6d209ebb982b857 interval-0.1.1.tar.gz
> 2e4d35a76bf7543ba7dc44c2e83db8be interval-html.tar.gz
> Upload @ https://sourceforge.net/p/octave/package-releases/new/
> Execute: hg tag "release-0.1.1"
This is pretty handy, thank you.
> make check: Run all package tests (without installation in GNU Octave)
If the package makes use of PKG_ADD in oct files this will fail. Something like
the following can help working around this.
$(eval PKG_ADD = $(shell grep -Pho '(?<=// PKG_ADD: ).*' ${CC_SOURCES}))
$(OCTAVE) --no-window-system --silent --eval 'addpath ("inst/"); '\
'addpath ("src/"); ${PKG_ADD} runtests ("inst/"); runtests ("src/");'
Carnë