File: Makefile

package info (click to toggle)
golang-github-editorconfig-editorconfig-core-go 2.6.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 220 kB
  • sloc: makefile: 32
file content (35 lines) | stat: -rw-r--r-- 688 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
PROJECT_ROOT_DIR := $(CURDIR)
SRC := $(shell git ls-files *.go */*.go)

.PHONY: bin test test-go test-core test-skipped submodule

test: test-go test-core

submodule:
	git submodule update --init

editorconfig: $(SRC)
	go build \
		-ldflags "-X main.version=1.99.99" \
		github.com/editorconfig/editorconfig-core-go/v2/cmd/editorconfig

test-go:
	go test -v ./...

test-core: editorconfig
	cd core-test; \
		cmake ..
	cd core-test; \
		ctest \
		-E "^(octothorpe_in_value|(backslashed_)*semicolon_or_hash_in_property)$$" \
		--output-on-failure \
		.

test-skipped: editorconfig
	cd core-test; \
		cmake ..
	cd core-test; \
		ctest \
		-R "^(octothorpe_in_value)$$" \
		--show-only \
		.