File: Makefile

package info (click to toggle)
slack 0.15.2-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 412 kB
  • sloc: perl: 2,510; makefile: 132; sh: 23
file content (30 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (7)
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 -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