Subversion Repositories wimsdev

Rev

Rev 104 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 reyssat 1
#!/usr/bin/make -f
2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
4
 
5
# Uncomment this to turn on verbose mode.
6
#export DH_VERBOSE=1
7
 
8
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
9
	CFLAGS += -g
10
endif
11
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
12
	INSTALL_PROGRAM += -s
13
endif
14
 
15
configure: configure-stamp
16
configure-stamp:
17
	dh_testdir
18
	# Add here commands to configure the package.
472 georgesk 19
	version=$$(basename $$(pwd)| sed 's/chemeq-//'); \
20
	sed "s/VERSION.*/VERSION \"$${version}\"/" src/chemeq.h > src/chemeq.h.tmp && \
21
	mv src/chemeq.h.tmp src/chemeq.h
10 reyssat 22
 
23
	touch configure-stamp
24
 
25
 
26
build: build-stamp
27
 
28
build-stamp: configure-stamp 
29
	dh_testdir
30
 
31
	# Add here commands to compile the package.
32
	$(MAKE)
33
	#/usr/bin/docbook-to-man debian/chemeq.sgml > chemeq.1
34
 
35
	touch build-stamp
36
 
37
clean:
38
	dh_testdir
39
	dh_testroot
40
	rm -f build-stamp configure-stamp
41
 
42
	# Add here commands to clean up after the build process.
104 bpr 43
	$(MAKE) clean
10 reyssat 44
 
45
	dh_clean
46
 
47
install: build
48
	dh_testdir
49
	dh_testroot
50
	dh_clean -k
51
	dh_installdirs
52
 
53
	# Add here commands to install the package into debian/chemeq.
54
	$(MAKE) install DESTDIR=$(CURDIR)/debian/chemeq
55
 
56
 
57
# Build architecture-independent files here.
58
binary-indep: build install
59
# We have nothing to do by default.
60
 
61
# Build architecture-dependent files here.
62
binary-arch: build install
63
	dh_testdir
64
	dh_testroot
65
#	dh_installdebconf	
66
	dh_installdocs
67
	dh_installexamples
68
	dh_installmenu
69
#	dh_installlogrotate
70
#	dh_installemacsen
71
#	dh_installpam
72
#	dh_installmime
73
#	dh_installinit
74
	dh_installcron
75
	dh_installman
76
	dh_installinfo
77
#	dh_undocumented
78
	dh_installchangelogs 
79
	dh_link
80
	dh_strip
81
	dh_compress
82
	dh_fixperms
83
#	dh_makeshlibs
84
	dh_installdeb
85
#	dh_perl
86
	dh_shlibdeps
87
	dh_gencontrol
88
	dh_md5sums
89
	dh_builddeb
90
 
91
binary: binary-indep binary-arch
92
.PHONY: build clean binary-indep binary-arch binary install configure