File: rules

package info (click to toggle)
appstream-generator 0.7.7-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 1,736 kB
  • sloc: xml: 253; sh: 78; python: 50; makefile: 21
file content (34 lines) | stat: -rwxr-xr-x 953 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
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1

include /usr/share/dh-dlang/dlang-flags.mk

ASGEN_FLAGS := --prefix=/usr \
		--buildtype=plain \
		-Ddownload-js=false

INSTALL_DIR := $(CURDIR)/debian/appstream-generator
INSTALLED_TEMPLATE_JSDIR := $(INSTALL_DIR)/usr/share/appstream/templates/default/static/js

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(ASGEN_FLAGS)

override_dh_install:
	dh_install

	rm -f $(INSTALLED_TEMPLATE_JSDIR)/.gitignore
	mkdir -p $(INSTALLED_TEMPLATE_JSDIR)/
	ln -s /usr/share/javascript/jquery-flot/ $(INSTALLED_TEMPLATE_JSDIR)/flot

	mkdir -p $(INSTALLED_TEMPLATE_JSDIR)/jquery
	ln -s /usr/share/javascript/jquery/jquery.min.js $(INSTALLED_TEMPLATE_JSDIR)/jquery/jquery.min.js

	mkdir -p $(INSTALLED_TEMPLATE_JSDIR)/highlight
	ln -s /usr/share/javascript/highlight.js/highlight.min.js $(INSTALLED_TEMPLATE_JSDIR)/highlight/highlight.pack.js

override_dh_missing:
	dh_missing --fail-missing