debian/rules
changeset 349 52d670355a7b
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/debian/rules	Fri Jun 02 15:35:25 2006 +0000
     1.3 @@ -0,0 +1,89 @@
     1.4 +#!/usr/bin/make -f
     1.5 +# -*- makefile -*-
     1.6 +# Sample debian/rules that uses debhelper.
     1.7 +# This file was originally written by Joey Hess and Craig Small.
     1.8 +# As a special exception, when this file is copied by dh-make into a
     1.9 +# dh-make output file, you may use that output file without restriction.
    1.10 +# This special exception was added by Craig Small in version 0.37 of dh-make.
    1.11 +
    1.12 +# Uncomment this to turn on verbose mode.
    1.13 +#export DH_VERBOSE=1
    1.14 +
    1.15 +
    1.16 +
    1.17 +
    1.18 +CFLAGS = -Wall -g
    1.19 +
    1.20 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
    1.21 +	CFLAGS += -O0
    1.22 +else
    1.23 +	CFLAGS += -O2
    1.24 +endif
    1.25 +
    1.26 +configure: configure-stamp
    1.27 +configure-stamp:
    1.28 +	dh_testdir
    1.29 +	# Add here commands to configure the package.
    1.30 +	qmake
    1.31 +	dpatch apply-all
    1.32 +	make
    1.33 +	touch configure-stamp
    1.34 +
    1.35 +
    1.36 +build: build-stamp
    1.37 +
    1.38 +build-stamp: configure-stamp 
    1.39 +	dh_testdir
    1.40 +
    1.41 +	# Add here commands to compile the package.
    1.42 +	$(MAKE)
    1.43 +	#docbook-to-man debian/vym.sgml > vym.1
    1.44 +
    1.45 +	touch build-stamp
    1.46 +
    1.47 +clean:
    1.48 +	dh_testdir
    1.49 +	dh_testroot
    1.50 +	rm -f build-stamp configure-stamp
    1.51 +	rm -rf debian/patched
    1.52 +	rm -rf vym
    1.53 +	dpatch deapply-all
    1.54 +	# Add here commands to clean up after the build process.
    1.55 +	-$(MAKE) clean
    1.56 +
    1.57 +	dh_clean 
    1.58 +
    1.59 +install: build
    1.60 +	dh_testdir
    1.61 +	dh_testroot
    1.62 +	dh_clean -k 
    1.63 +	dh_installdirs
    1.64 +	install -m 644 vym.desktop debian/vym/usr/share/applications/vym.desktop
    1.65 +	# Add here commands to install the package into debian/vym.
    1.66 +	$(MAKE) install DESTDIR=$(CURDIR)/debian/vym
    1.67 +
    1.68 +
    1.69 +# Build architecture-independent files here.
    1.70 +binary-indep: build install
    1.71 +# We have nothing to do by default.
    1.72 +
    1.73 +# Build architecture-dependent files here.
    1.74 +binary-arch: build install
    1.75 +	dh_testdir
    1.76 +	dh_testroot
    1.77 +	dh_installchangelogs 
    1.78 +	dh_installdocs
    1.79 +	dh_installman
    1.80 +	dh_installmenu
    1.81 +	dh_link
    1.82 +	dh_strip
    1.83 +	dh_compress
    1.84 +	dh_fixperms
    1.85 +	dh_installdeb
    1.86 +	dh_shlibdeps
    1.87 +	dh_gencontrol
    1.88 +	dh_md5sums
    1.89 +	dh_builddeb
    1.90 +
    1.91 +binary: binary-indep binary-arch
    1.92 +.PHONY: build clean binary-indep binary-arch binary install configure