19
configure: configure-stamp
22
# Add here commands to configure the package.
11
build-gtk: src/rasmol-gtk
14
cd $(CURDIR)/src ; xmkmf -DGTKWIN ; cd $(CURDIR)
17
mv src/rasmol src/rasmol-gtk
19
build-x11: src/rasmol.8 src/rasmol.16 src/rasmol.32
23
cd $(CURDIR)/src ; xmkmf -DX11WIN ; cd $(CURDIR)
25
$(MAKE) -C src DEPTHDEF=-DEIGHTBIT=1 rasmol
26
mv src/rasmol src/rasmol.8
30
cd $(CURDIR)/src ; xmkmf -DX11WIN ; cd $(CURDIR)
32
$(MAKE) -C src DEPTHDEF=-DSIXTEENBIT=1 rasmol
33
mv src/rasmol src/rasmol.16
37
cd $(CURDIR)/src ; xmkmf -DX11WIN ; cd $(CURDIR)
39
$(MAKE) -C src DEPTHDEF=-DTHIRTYTWOBIT=1 rasmol
40
mv src/rasmol src/rasmol.32
42
build-arch: build-gtk build-x11
46
zcat doc/manualA4.pdf.gz > manualA4.pdf
47
zcat doc/refcardA4.pdf.gz > refcardA4.pdf
26
49
build: build-arch build-indep
28
build-arch: build-arch-stamp
29
build-arch-stamp: configure-stamp
30
# Add here commands to compile the arch part of the package.
33
zcat $(DOC)/manualA4.pdf.gz > manualA4.pdf
34
zcat $(DOC)/refcardA4.pdf.gz > refcardA4.pdf
36
cd $(CURDIR)/src ; xmkmf -DGTKWIN ; cd $(CURDIR)
37
$(MAKE) -C $(SRC) gtkui.h
38
$(MAKE) -C $(SRC) DEPTHDEF=-DTHIRTYTWOBIT=1 rasmol
39
mv $(SRC)/rasmol $(SRC)/rasmol-gtk
40
$(MAKE) -C $(SRC) clean;
42
cd $(CURDIR)/src ; xmkmf -DX11WIN ; cd $(CURDIR)
43
$(MAKE) -C $(SRC) DEPTHDEF=-DEIGHTBIT=1 rasmol
44
mv $(SRC)/rasmol $(SRC)/rasmol.8
45
$(MAKE) -C $(SRC) clean;
47
$(MAKE) -C $(SRC) DEPTHDEF=-DSIXTEENBIT=1 rasmol
48
mv $(SRC)/rasmol $(SRC)/rasmol.16
49
$(MAKE) -C $(SRC) clean;
51
$(MAKE) -C $(SRC) DEPTHDEF=-DTHIRTYTWOBIT=1 rasmol
52
mv $(SRC)/rasmol $(SRC)/rasmol.32
54
touch build-arch-stamp
56
build-indep: build-indep-stamp
57
build-indep-stamp: configure-stamp
58
# Add here commands to compile the indep part of the package.
59
touch build-indep-stamp
64
rm -f build-arch-stamp build-indep-stamp configure-stamp
66
# Add here commands to clean up after the build process.
67
if [ -f src/Makefile ] ; then $(MAKE) -C $(SRC) distclean ; fi
68
-rm -f $(SRC)/rasmol-gtk $(SRC)/rasmol.32 $(SRC)/rasmol.16 $(SRC)/rasmol.8
54
if [ -f src/Makefile ] ; then $(MAKE) -C src distclean ; fi
55
-rm -f src/rasmol-gtk src/rasmol.32 src/rasmol.16 src/rasmol.8
70
57
-rm -f manualA4.pdf refcardA4.pdf
71
dh_clean --exclude ./src/mswin31.c.orig
73
install: install-indep install-arch
77
dh_clean -k -i --exclude ./src/mswin31.c.orig
79
dh_installman ## -prasmol -A $(DOC)/rasmol.1
85
dh_clean -k --exclude ./src/mswin31.c.orig
61
dh install --before dh_installchangelogs
62
dh_installchangelogs ChangeLog.txt
63
dh install --before dh_compress
65
dh install --after dh_compress
90
66
install -D -m 755 debian/rasmol-classic.sh.debian \
91
$(CURDIR)/debian/rasmol/usr/bin/rasmol-classic
93
# Must not depend on anything. This is to be called by
94
# binary-arch/binary-indep
95
# in another 'make' thread.
99
dh_installchangelogs -k ChangeLog.html
117
# Build architecture independant packages using the common target.
118
binary-indep: build-indep install-indep
119
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
121
# Build architecture dependant packages using the common target.
122
binary-arch: build-arch install-arch
123
$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
67
$(CURDIR)/debian/rasmol/usr/bin/rasmol-classic
68
install -D -m u=rw,go=r debian/rasmol.bash_completion \
69
$(CURDIR)/debian/rasmol/etc/bash_completion.d/rasmol
71
binary-indep: build install
74
binary-arch: build install
125
77
binary: binary-arch binary-indep
126
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
78
.PHONY: build build-arch build-indep build-gtk build-x11 clean binary-indep binary-arch binary install