File: rules

package info (click to toggle)
auto-07p 0.9.1+dfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 16,200 kB
  • sloc: fortran: 22,644; f90: 19,340; python: 19,045; ansic: 11,116; sh: 1,079; makefile: 618; perl: 339
file content (36 lines) | stat: -rwxr-xr-x 1,347 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
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_APPEND = -fPIC
export DEB_FFLAGS_MAINT_APPEND = -fPIC -std=legacy

%:
	dh $@ --sourcedirectory=07p --with python2

override_dh_auto_configure:
	dh_auto_configure -- --with-optimization-flags="$(FFLAGS)"

override_dh_auto_install:
	install -m 644 -o root -g root 07p/bin/auto \
			debian/auto-07p/usr/bin/auto-07p
	install -m 644 -o root -g root 07p/python/*.py \
		debian/auto-07p/usr/lib/auto-07p/python/
	install -m 644 -o root -g root 07p/python/graphics/*.py \
		debian/auto-07p/usr/lib/auto-07p/python/graphics/
	install -m 644 -o root -g root 07p/include/auto*.h \
		debian/auto-07p/usr/include
	install -m 644 -o root -g root 07p/include/config.h \
		debian/auto-07p/usr/include/auto-07p_config.h
	sed -i 's/"config\.h"/<auto-07p_config.h>/' \
		debian/auto-07p/usr/include/auto_f2c.h
	chmod +x debian/auto-07p/usr/lib/auto-07p/python/interactiveBindings.py
	rm -f debian/auto-07p/usr/lib/auto-07p/python/graphics/pyplaut.py
	cp -av 07p/cmds debian/auto-07p/usr/lib/auto-07p/
	rm -f debian/auto-07p/usr/lib/auto-07p/cmds/@ps \
		  debian/auto-07p/usr/lib/auto-07p/cmds/@eps
	cp -av 07p/lib debian/auto-07p/usr/lib/auto-07p/

override_dh_install:

# dh_installchangelogs doesn't honor -O--sourcedirectory?
override_dh_installchangelogs:
	dh_installchangelogs -O--sourcedirectory=07p 07p/CHANGELOG