#!/usr/bin/make -f
# debian/rules for the wmweather+ package

export DEB_CFLAGS_MAINT_APPEND = -Wall
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif


%:
	dh $@

override_dh_auto_install:
	cp -f wmweather+ debian/wmweather+/usr/bin/wmweather+
	cp -f example.conf debian/wmweather+/etc/wmweather+.conf
	
