File: rules

package info (click to toggle)
autodocksuite 4.2.6-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 97,028 kB
  • sloc: cpp: 24,257; sh: 4,419; python: 1,261; makefile: 624; perl: 15
file content (69 lines) | stat: -rwxr-xr-x 2,525 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
61
62
63
64
65
66
67
68
69
#!/usr/bin/make -f

# see http://www.gentoo.org/proj/en/qa/asneeded.xml
LDFLAGS+=-Wl,--as-needed

# link time optimisation - as soon as gcc-4.5 hits the archive
# 20.02.2013, ta, does not really work yet
#CFLAGS += -flto
CXXFLAGS += -flto
LDFLAGS += -flto

SAVEFILES=Makefile.in aclocal.m4 config.guess config.sub configure

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	mkdir -p debian/autodock_save
	cd autodock && cp -a $(SAVEFILES) ../debian/autodock_save && autoreconf -i
	dh_auto_configure --sourcedirectory=autodock
	mkdir -p debian/autogrid_save
	cd autogrid && cp -a $(SAVEFILES) ../debian/autogrid_save && autoreconf -i
	dh_auto_configure --sourcedirectory=autogrid

override_dh_auto_build:
	dh_auto_build --sourcedirectory=autodock
	dh_auto_build --sourcedirectory=autogrid


override_dh_auto_clean:
	dh_auto_clean --sourcedirectory=autodock
	dh_auto_clean --sourcedirectory=autogrid
	rm -rf autodock/usr autogrid/usr
	rm -rf autodock/compile autogrid/compile
	rm -rf autogrid/mingw_* autogrid/parse_param_line.* autogrid/printdate.* autogrid/printhms.* autogrid/read_parameter_library* autogrid/stop.* autogrid/timesys*
	if [ -d debian/autodock_save ] ; then mv debian/autodock_save/* autodock; rmdir debian/autodock_save ; fi
	if [ -d debian/autogrid_save ] ; then mv debian/autogrid_save/* autogrid; rmdir debian/autogrid_save ; fi
	# remove test results
	rm -rf autodock/Tests/popfile autodock/Tests/test_1pgp*.dlg
	rm -rf autodock_testresults
	rm -rf autogrid/Tests/hsg1_sm.*.map autogrid/Tests/hsg1_sm.glg autogrid/Tests/hsg1_sm.maps* autogrid/Tests/test_x1* autogrid/Tests/x1hpv.*.map autogrid/Tests/x1hpv.maps.*
	rm -rf autogrid_testresults
	find . -name "*.pyc" -delete

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test --sourcedirectory=autodock
	dh_auto_test --sourcedirectory=autogrid
endif

override_dh_install-indep:
	dh_install -i
	rm -rf $(CURDIR)/debian/autodock-test/usr/share/autodock/Tests/AutoDockTools
	rm -rf $(CURDIR)/debian/autogrid-test/usr/share/autogrid/Tests/CVS/
	rm -rf $(CURDIR)/debian/autodock-test/usr/share/autodock/Tests/CVS/

override_dh_fixperms-indep:
	dh_fixperms
	chmod 644 $(CURDIR)/debian/autodock-test/usr/share/autodock/Tests/*
	chmod 644 $(CURDIR)/debian/autogrid-test/usr/share/autogrid/Tests/*

override_dh_auto_install-arch:
	dh_auto_install --sourcedirectory=autodock
	dh_auto_install --sourcedirectory=autogrid

override_dh_installchangelogs:
	dh_installchangelogs autodock/RELEASENOTES