File: Makefile

package info (click to toggle)
slack 1%3A0.15.2-11
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 500 kB
  • sloc: perl: 2,518; makefile: 94; sh: 23
file content (30 lines) | stat: -rw-r--r-- 546 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
include ../Makefile.common

TEST_TMPDIR=$(shell pwd)/tmp
export TEST_TMPDIR

CONFFILES=slack.conf roles.conf
TARGETS=$(addprefix $(TEST_TMPDIR)/, $(CONFFILES))

all: $(TARGETS)

install install-bin install-conf install-lib install-man: all

$(TEST_TMPDIR):
	mkdir --verbose -p $(TEST_TMPDIR)

$(TEST_TMPDIR)/%.conf: %.conf.template gen_config_file $(TEST_TMPDIR)
	./gen_config_file $< $@

clean:
	rm -f $(TARGETS)
	rm -rf $(TEST_TMPDIR)

realclean: clean

distclean: clean

test: clean all
	perl -MTest::Harness -e 'runtests(<*.t>)'

check: test