greg@91: #!/usr/bin/make -f
greg@91: # -*- makefile -*-
greg@91: # Sample debian/rules that uses debhelper.
greg@91: # This file was originally written by Joey Hess and Craig Small.
greg@91: # As a special exception, when this file is copied by dh-make into a
greg@91: # dh-make output file, you may use that output file without restriction.
greg@91: # This special exception was added by Craig Small in version 0.37 of dh-make.
greg@91: 
greg@91: # Uncomment this to turn on verbose mode.
greg@91: #export DH_VERBOSE=1
greg@91: 
greg@91: 
greg@91: 
greg@91: 
greg@91: CFLAGS = -Wall -g
greg@91: 
greg@91: ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
greg@91: 	CFLAGS += -O0
greg@91: else
greg@91: 	CFLAGS += -O2
greg@91: endif
greg@91: 
greg@91: configure: configure-stamp
greg@91: configure-stamp:
greg@91: 	dh_testdir
greg@91: 	# Add here commands to configure the package.
greg@91: 
greg@91: 	touch configure-stamp
greg@91: 
greg@91: 
greg@91: build: build-stamp
greg@91: 
greg@91: build-stamp: configure-stamp 
greg@91: 	dh_testdir
greg@91: 
greg@91: 	# Add here commands to compile the package.
greg@91: 	#$(MAKE)
greg@91: 	#docbook-to-man debian/beremiz.sgml > beremiz.1
greg@91: 
greg@91: 	touch $@
greg@91: 
greg@91: clean:
greg@91: 	dh_testdir
greg@91: 	dh_testroot
greg@91: 	rm -f build-stamp configure-stamp
greg@91: 
greg@91: 	# Add here commands to clean up after the build process.
greg@91: 	#-$(MAKE) clean
greg@91: 
greg@91: 	dh_clean 
greg@91: 
greg@91: install: build
greg@91: 	dh_testdir
greg@91: 	dh_testroot
greg@91: 	dh_clean -k 
greg@91: 	dh_installdirs
greg@91: 
greg@91: 	# Add here commands to install the package into debian/beremiz.
greg@91: 	#$(MAKE) DESTDIR=$(CURDIR)/debian/beremiz install
greg@91: 	mkdir -p $(CURDIR)/debian/beremiz/usr/share/beremiz
greg@91: 	cp -a images $(CURDIR)/debian/beremiz/usr/share/beremiz
greg@91: 	cp -a plugins $(CURDIR)/debian/beremiz/usr/share/beremiz
greg@91: 	cp -a runtime $(CURDIR)/debian/beremiz/usr/share/beremiz
greg@91: 	cp -a test $(CURDIR)/debian/beremiz/usr/share/beremiz
greg@91: 	cp *.py $(CURDIR)/debian/beremiz/usr/share/beremiz
greg@91: 
greg@91: 	chmod -R a+r $(CURDIR)/debian/beremiz
greg@91: 
greg@91: # Build architecture-independent files here.
greg@91: binary-indep: build install
greg@91: # We have nothing to do by default.
greg@91: 
greg@91: # Build architecture-dependent files here.
greg@91: binary-arch: build install
greg@91: 	dh_testdir
greg@91: 	dh_testroot
greg@91: 	dh_installchangelogs 
greg@91: 	dh_installdocs
greg@91: 	dh_installexamples
greg@91: #	dh_install
greg@91: #	dh_installmenu
greg@91: #	dh_installdebconf	
greg@91: #	dh_installlogrotate
greg@91: #	dh_installemacsen
greg@91: #	dh_installpam
greg@91: #	dh_installmime
greg@91: #	dh_python
greg@91: #	dh_installinit
greg@91: #	dh_installcron
greg@91: #	dh_installinfo
greg@91: 	dh_installman
greg@91: 	dh_link
greg@91: 	dh_strip
greg@91: 	dh_compress
greg@91: 	dh_fixperms
greg@91: #	dh_perl
greg@91: #	dh_makeshlibs
greg@91: 	dh_installdeb
greg@91: 	dh_shlibdeps
greg@91: 	dh_gencontrol
greg@91: 	dh_md5sums
greg@92: 	dh_builddeb
greg@91: 
greg@91: binary: binary-indep binary-arch
greg@91: .PHONY: build clean binary-indep binary-arch binary install configure