debian/rules
author insilmaril
Wed, 11 Jul 2007 08:50:29 +0000
changeset 546 4dee155ba881
parent 156 32dec8762b2d
permissions -rw-r--r--
Extended INSTALL.txt
insilmaril@156
     1
#!/usr/bin/make -f
insilmaril@156
     2
# -*- makefile -*-
insilmaril@156
     3
# Sample debian/rules that uses debhelper.
insilmaril@156
     4
# This file was originally written by Joey Hess and Craig Small.
insilmaril@156
     5
# As a special exception, when this file is copied by dh-make into a
insilmaril@156
     6
# dh-make output file, you may use that output file without restriction.
insilmaril@156
     7
# This special exception was added by Craig Small in version 0.37 of dh-make.
insilmaril@156
     8
insilmaril@156
     9
# Uncomment this to turn on verbose mode.
insilmaril@156
    10
#export DH_VERBOSE=1
insilmaril@156
    11
insilmaril@156
    12
insilmaril@156
    13
insilmaril@156
    14
insilmaril@156
    15
CFLAGS = -Wall -g
insilmaril@156
    16
insilmaril@156
    17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
insilmaril@156
    18
	CFLAGS += -O0
insilmaril@156
    19
else
insilmaril@156
    20
	CFLAGS += -O2
insilmaril@156
    21
endif
insilmaril@156
    22
insilmaril@156
    23
configure: configure-stamp
insilmaril@156
    24
configure-stamp:
insilmaril@156
    25
	dh_testdir
insilmaril@156
    26
	# Add here commands to configure the package.
insilmaril@156
    27
	qmake
insilmaril@156
    28
	dpatch apply-all
insilmaril@156
    29
	make
insilmaril@156
    30
	touch configure-stamp
insilmaril@156
    31
insilmaril@156
    32
insilmaril@156
    33
build: build-stamp
insilmaril@156
    34
insilmaril@156
    35
build-stamp: configure-stamp 
insilmaril@156
    36
	dh_testdir
insilmaril@156
    37
insilmaril@156
    38
	# Add here commands to compile the package.
insilmaril@156
    39
	$(MAKE)
insilmaril@156
    40
	#docbook-to-man debian/vym.sgml > vym.1
insilmaril@156
    41
insilmaril@156
    42
	touch build-stamp
insilmaril@156
    43
insilmaril@156
    44
clean:
insilmaril@156
    45
	dh_testdir
insilmaril@156
    46
	dh_testroot
insilmaril@156
    47
	rm -f build-stamp configure-stamp
insilmaril@156
    48
	rm -rf debian/patched
insilmaril@156
    49
	rm -rf vym
insilmaril@156
    50
	dpatch deapply-all
insilmaril@156
    51
	# Add here commands to clean up after the build process.
insilmaril@156
    52
	-$(MAKE) clean
insilmaril@156
    53
insilmaril@156
    54
	dh_clean 
insilmaril@156
    55
insilmaril@156
    56
install: build
insilmaril@156
    57
	dh_testdir
insilmaril@156
    58
	dh_testroot
insilmaril@156
    59
	dh_clean -k 
insilmaril@156
    60
	dh_installdirs
insilmaril@156
    61
	install -m 644 vym.desktop debian/vym/usr/share/applications/vym.desktop
insilmaril@156
    62
	# Add here commands to install the package into debian/vym.
insilmaril@156
    63
	$(MAKE) install DESTDIR=$(CURDIR)/debian/vym
insilmaril@156
    64
insilmaril@156
    65
insilmaril@156
    66
# Build architecture-independent files here.
insilmaril@156
    67
binary-indep: build install
insilmaril@156
    68
# We have nothing to do by default.
insilmaril@156
    69
insilmaril@156
    70
# Build architecture-dependent files here.
insilmaril@156
    71
binary-arch: build install
insilmaril@156
    72
	dh_testdir
insilmaril@156
    73
	dh_testroot
insilmaril@156
    74
	dh_installchangelogs 
insilmaril@156
    75
	dh_installdocs
insilmaril@156
    76
	dh_installman
insilmaril@156
    77
	dh_installmenu
insilmaril@156
    78
	dh_link
insilmaril@156
    79
	dh_strip
insilmaril@156
    80
	dh_compress
insilmaril@156
    81
	dh_fixperms
insilmaril@156
    82
	dh_installdeb
insilmaril@156
    83
	dh_shlibdeps
insilmaril@156
    84
	dh_gencontrol
insilmaril@156
    85
	dh_md5sums
insilmaril@156
    86
	dh_builddeb
insilmaril@156
    87
insilmaril@156
    88
binary: binary-indep binary-arch
insilmaril@156
    89
.PHONY: build clean binary-indep binary-arch binary install configure