[go: up one dir, main page]

File: rules

package info (click to toggle)
darcs-monitor 0.3.4-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 124 kB
  • ctags: 56
  • sloc: haskell: 438; makefile: 28
file content (60 lines) | stat: -rwxr-xr-x 2,153 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/make -f
# Copyright © 2007 Antti-Juhani Kaijanaho.
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this file, to deal in this file without
# restriction, including without limitation the rights to use, copy,
# modify, merge, publish, distribute, sublicense, and/or sell copies
# of this file, and to permit persons to whom this file is furnished
# to do so, subject to the following condition: The above copyright
# notice and this permission notice shall be included in all copies or
# substantial portions of this file.
#
# THIS FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FIT- NESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT.  IN NO EVENT SHALL SOFTWARE IN THE PUBLIC INTEREST,
# INC.  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
# IN CONNECTION WITH THIS FILE OR THE USE OR OTHER DEALINGS IN THIS
# FILE.
#
# Except as contained in this notice, the name of the author(s) of
# this file shall not be used in advertising or otherwise to promote
# the sale, use or other dealings in this file without prior written
# authorization from the author(s).

librules_interface = 2
include debian/librules.mk

package=darcs-monitor

debian/stamp/build:
	ghc -o Setup --make Setup.hs
	./Setup configure --ghc --prefix=/usr --datasubdir=$(package)
	./Setup build
	touch $@

debian/stamp/binary/arch: debian/stamp/binary/darcs-monitor

debian/stamp/binary/darcs-monitor: debian/stamp/build
	$(prebinary)
	./Setup copy --destdir=$(rootdir)
	chmod 644 $(sharedir)/default-template
	$(install_nonex) README $(docdir)
	$(install_dir)  $(man1dir)
	$(install_nonex) darcs-monitor.1 $(man1dir)/darcs-monitor.1
	$(gzip) $(man1dir)/darcs-monitor.1
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	strip -R .comment $(bindir)/darcs-monitor
endif
	dpkg-shlibdeps $(bindir)/darcs-monitor
	$(postbinary)
	touch $@

clean-build:
	if test -x Setup ; then ./Setup clean ; fi
	$(RM) Setup Setup.hi Setup.o

clean:
	$(RM) debian/*~ *~