#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

# Use local copies to generate Uploaders: field
TEAM_LIST := ./pkg-gnome.team
include ./1/rules/uploaders.mk

# check for missing trailing comma or superfluous comma (on last line)
typos := $(shell sed -n 's/[^,]*//; $$,$$! { /^,$$/ d }; $$,$$ { /^$$/ d }; =' $(TEAM_LIST))
ifneq ($(typos),)
$(error Missing or superfluous comma in $(TEAM_LIST) at lines: $(typos))
endif

build/gnome-pkg-tools::
	xmlto html-nochunks gnome-policy.xml

clean::
	rm -f gnome-policy.html
