Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (29 sloc) 1.284 kb
# -*- makefile -*-
# Targets useful for maintenance/making releases etc. Some of them depend
# on very specific local setups
include Makefile
rpmbuild_dir=/data/rpmbuild/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
rpb_spec=$(rpmbuild_dir)/augeas.spec
et_rel_dir=et:/var/www/sites/augeas.et.redhat.com/download/
tarball=$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
# This only works with the way I have set up my .rpmmacros
build-rpm:
test -d $(rpmbuild_dir) || mkdir $(rpmbuild_dir)
rm -f $(rpmbuild_dir)/$(tarball) $(rpb_spec)
ln -sf $(abs_top_srcdir)/$(tarball) $(rpmbuild_dir)
ln -sf $(abs_top_srcdir)/augeas.spec $(rpmbuild_dir)
rpmbuild -ba $(rpmbuild_dir)/augeas.spec
upload:
@gpg -q --batch --verify $(tarball).sig > /dev/null 2>&1 || \
gpg --output $(tarball).sig --detach-sig $(tarball); \
rsync -v $(tarball) $(tarball).sig $(et_rel_dir); \
git push --tags
tag-release:
@git tag -s release-$(VERSION)
# Print all the debug categories in use
debug-categories:
@fgrep 'debugging("' src/*.c | sed -r -e 's/^.*debugging\("([^"]+)"\).*$$/\1/' | sort -u
# This is how I run autogen.sh locally
autogen:
./autogen.sh CFLAGS=-g --prefix=/data/share/ --gnulib-srcdir=${HOME}/code/gnulib/ --enable-compile-warnings=error --enable-debug=yes
.PHONY: build-rpm
Jump to Line
Something went wrong with that request. Please try again.