File: rules

package info (click to toggle)
elm-compiler 0.19.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: haskell: 35,930; javascript: 5,404; sh: 82; xml: 27; python: 26; makefile: 11
file content (16 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export ELM_HOME := $(CURDIR)/debian/elm-home
ELM_VERSION := $(shell dpkg-parsechangelog -SVersion | sed -E -e 's/^([^:]:)?([^-]*)(-.*)?$$/\2/')
PACKAGES_DIR := $(ELM_HOME)/$(ELM_VERSION)/packages

execute_before_dh_auto_configure:
	rm -f $(PACKAGES_DIR)
	mkdir -p $(ELM_HOME)/$(ELM_VERSION)
	ln -sf $(CURDIR)/packages $(PACKAGES_DIR)

override_dh_compress:
	$(DH_OVERRIDDEN_COMMAND) -X.md

%:
	dh $@