Search
lxdream.org :: lxdream/debian/rules
lxdream 0.9.1
released Jun 29
Download Now
filename debian/rules
changeset 519:ef9a7f176401
next1055:072457c02704
author nkeynes
date Thu Nov 15 12:10:08 2007 +0000 (12 years ago)
permissions -rwxr-xr-x
last change Add initial debian control files
file annotate diff log raw
nkeynes@519
     1
#!/usr/bin/make -f
nkeynes@519
     2
# -*- makefile -*-
nkeynes@519
     3
# Sample debian/rules that uses debhelper.
nkeynes@519
     4
# This file was originally written by Joey Hess and Craig Small.
nkeynes@519
     5
# As a special exception, when this file is copied by dh-make into a
nkeynes@519
     6
# dh-make output file, you may use that output file without restriction.
nkeynes@519
     7
# This special exception was added by Craig Small in version 0.37 of dh-make.
nkeynes@519
     8
nkeynes@519
     9
# Uncomment this to turn on verbose mode.
nkeynes@519
    10
#export DH_VERBOSE=1
nkeynes@519
    11
nkeynes@519
    12
nkeynes@519
    13
# These are used for cross-compiling and for saving the configure script
nkeynes@519
    14
# from having to guess our platform (since we know it already)
nkeynes@519
    15
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
nkeynes@519
    16
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
nkeynes@519
    17
nkeynes@519
    18
nkeynes@519
    19
config.status: configure
nkeynes@519
    20
	dh_testdir
nkeynes@519
    21
	# Add here commands to configure the package.
nkeynes@519
    22
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
nkeynes@519
    23
	cp -f /usr/share/misc/config.sub config.sub
nkeynes@519
    24
endif
nkeynes@519
    25
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
nkeynes@519
    26
	cp -f /usr/share/misc/config.guess config.guess
nkeynes@519
    27
endif
nkeynes@519
    28
	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
nkeynes@519
    29
nkeynes@519
    30
nkeynes@519
    31
build: build-stamp
nkeynes@519
    32
nkeynes@519
    33
build-stamp:  config.status
nkeynes@519
    34
	dh_testdir
nkeynes@519
    35
nkeynes@519
    36
	# Add here commands to compile the package.
nkeynes@519
    37
	$(MAKE)
nkeynes@519
    38
	#docbook-to-man debian/lxdream.sgml > lxdream.1
nkeynes@519
    39
nkeynes@519
    40
	touch $@
nkeynes@519
    41
nkeynes@519
    42
clean:
nkeynes@519
    43
	dh_testdir
nkeynes@519
    44
	dh_testroot
nkeynes@519
    45
	rm -f build-stamp 
nkeynes@519
    46
nkeynes@519
    47
	# Add here commands to clean up after the build process.
nkeynes@519
    48
	$(MAKE) distclean
nkeynes@519
    49
	rm -f config.sub config.guess
nkeynes@519
    50
nkeynes@519
    51
	dh_clean 
nkeynes@519
    52
nkeynes@519
    53
install: build
nkeynes@519
    54
	dh_testdir
nkeynes@519
    55
	dh_testroot
nkeynes@519
    56
	dh_clean -k 
nkeynes@519
    57
	dh_installdirs
nkeynes@519
    58
nkeynes@519
    59
	# Add here commands to install the package into debian/lxdream.
nkeynes@519
    60
	$(MAKE) DESTDIR=$(CURDIR)/debian/lxdream install
nkeynes@519
    61
nkeynes@519
    62
nkeynes@519
    63
# Build architecture-independent files here.
nkeynes@519
    64
binary-indep: build install
nkeynes@519
    65
# We have nothing to do by default.
nkeynes@519
    66
nkeynes@519
    67
# Build architecture-dependent files here.
nkeynes@519
    68
binary-arch: build install
nkeynes@519
    69
	dh_testdir
nkeynes@519
    70
	dh_testroot
nkeynes@519
    71
	dh_installchangelogs ChangeLog
nkeynes@519
    72
	dh_installdocs
nkeynes@519
    73
	dh_installexamples
nkeynes@519
    74
#	dh_install
nkeynes@519
    75
#	dh_installmenu
nkeynes@519
    76
#	dh_installdebconf	
nkeynes@519
    77
#	dh_installlogrotate
nkeynes@519
    78
#	dh_installemacsen
nkeynes@519
    79
#	dh_installpam
nkeynes@519
    80
#	dh_installmime
nkeynes@519
    81
#	dh_python
nkeynes@519
    82
#	dh_installinit
nkeynes@519
    83
#	dh_installcron
nkeynes@519
    84
#	dh_installinfo
nkeynes@519
    85
	dh_installman
nkeynes@519
    86
	dh_link
nkeynes@519
    87
	dh_strip
nkeynes@519
    88
	dh_compress
nkeynes@519
    89
	dh_fixperms
nkeynes@519
    90
#	dh_perl
nkeynes@519
    91
#	dh_makeshlibs
nkeynes@519
    92
	dh_installdeb
nkeynes@519
    93
	dh_shlibdeps
nkeynes@519
    94
	dh_gencontrol
nkeynes@519
    95
	dh_md5sums
nkeynes@519
    96
	dh_builddeb
nkeynes@519
    97
nkeynes@519
    98
binary: binary-indep binary-arch
nkeynes@519
    99
.PHONY: build clean binary-indep binary-arch binary install 
.