File: rules

package info (click to toggle)
ghemical 3.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 5,820 kB
  • sloc: cpp: 13,440; sh: 9,881; makefile: 184
file content (27 lines) | stat: -rwxr-xr-x 844 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

#export DH_VERBOSE=1

include /usr/share/dpkg/default.mk

LDFLAGS ?=
LDFLAGS += -Wl,--as-needed

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-threads --enable-openbabel

override_dh_auto_install:
	dh_auto_install
	chrpath -d $(CURDIR)/debian/ghemical/usr/bin/ghemical
	mv $(CURDIR)/debian/ghemical/usr/share/ghemical/${DEB_VERSION_UPSTREAM}/examples \
	   $(CURDIR)/debian/ghemical/usr/share/doc/ghemical
	$(RM) $(CURDIR)/debian/ghemical/usr/share/ghemical/${DEB_VERSION_UPSTREAM}/GNULICENSE.txt

override_dh_link:
	dh_link /usr/share/ghemical/$(DEB_VERSION_UPSTREAM)/user-docs /usr/share/doc/ghemical/html
	dh_link /usr/share/ghemical/$(DEB_VERSION_UPSTREAM)/pixmaps/ghemical.png /usr/share/pixmaps/ghemical.png