File: rules

package info (click to toggle)
ats2-lang 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 40,064 kB
  • sloc: ansic: 389,637; makefile: 7,123; lisp: 812; sh: 657; php: 573; python: 387; perl: 365
file content (39 lines) | stat: -rwxr-xr-x 1,759 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
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@  --no-parallel --with elpa

override_dh_auto_install:
	dh_auto_install --destdir debian/ats2-lang
	find debian/ats2-lang -name .keeper -exec rm \{\} \;
	# For now, until there is a flycheck package
	rm -f debian/ats2-lang/usr/share/emacs/site-lisp/ats2-mode/flycheck-ats2.el
	find debian/ats2-lang -wholename '*TEST/Worker*' -delete
	find debian/ats2-lang -wholename '*TEST/Counter*' -delete
	find debian/ats2-lang -name 'theDeclpostamble.html' -delete
	find debian/ats2-lang -name 'rpc_client.html' -delete
	find debian/ats2-lang -name 'test_client.html' -delete
	find debian/ats2-lang -name 'test2_client.html' -delete
	find debian/ats2-lang -name 'test3_client.html' -delete
	find debian/ats2-lang -wholename '*/contrib/*/README*' -delete
	find debian/ats2-lang -wholename '*/contrib/*/LICENSE*' -delete
	find debian/ats2-lang -type d -empty -delete
	mkdir -p debian/ats2-lang/usr/share/doc/ats2-lang
	cp CHANGES-ats2 debian/ats2-lang/usr/share/doc/ats2-lang/changelog
	gzip -9 debian/ats2-lang/usr/share/doc/ats2-lang/changelog
	# fix problem with symlinks from upstream package:
	find debian/ats2-lang/usr/lib/ats2-postiats-*/contrib -name Makefile.gen -exec ln -sf  ../../../../../share/Makefile.gen \{\} \;

override_dh_clean:
	dh_clean
	rm -f src/CBOOT/libatsopt.a