File: rules

package info (click to toggle)
elm-compiler 0.19.1-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 5,232 kB
  • sloc: haskell: 35,926; javascript: 5,404; sh: 82; xml: 27; python: 26; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 539 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
#!/usr/bin/make -f

DEB_CABAL_PACKAGE = elm
DEB_DEFAULT_COMPILER = ghc
DEB_COMPRESS_EXCLUDE = .md

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

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk

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

build/elm-compiler:: build-ghc-stamp