debian/rules
author deba
Mon, 03 Apr 2006 19:47:37 +0000
changeset 2035 e92071fadd3f
parent 1917 87d3518d73d8
permissions -rwxr-xr-x
More mingw compatibility

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