aboutsummaryrefslogtreecommitdiff
path: root/paludis/syncers/Makefile.am
blob: 85627d268513f575fc7a52f0dad4b24dc492ca5f (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = *~ .keep docvs+ext docvs+pserver docvs+ssh dodarcs+http dodarcs+ssh dofile dogit dogit+http dogit+ssh dorsync dosvn dosvn+http dosvn+https dosvn+ssh dotar+file dotar+ftp dotar+http
SUBDIRS = .

.keep :
	touch $@

libexecprogdir = $(libexecdir)/paludis/syncers/

libexecprog_SCRIPTS = \
	docvs+ext \
	docvs+pserver \
	docvs+ssh \
	dodarcs+http \
	dodarcs+ssh \
	dofile \
	dogit \
	dogit+http \
	dogit+ssh \
	dorsync \
	dosvn \
	dosvn+http \
	dosvn+https \
	dosvn+ssh \
	dotar+file \
	dotar+ftp \
	dotar+http \
	dodummy

TESTS_ENVIRONMENT = env \
	PALUDIS_EBUILD_DIR="$(srcdir)/paludis/syncers/" \
	PALUDIS_DISTRIBUTION="gentoo" \
	TEST_SCRIPT_DIR="$(srcdir)/" \
	bash $(top_srcdir)/test/run_test.sh

installusersyncersdir = $(datadir)/paludis/syncers
installusersyncers_DATA = .keep

TESTS =
EXTRA_DIST = $(libexecprog_SCRIPTS) docvs.in dodarcs.in dogit.in dorsync.in dosvn.in dotar.in

check_SCRIPTS =
check_PROGRAMS = $(TESTS)

AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@

docvs+ext docvs+pserver docvs+ssh : docvs.in
	cat $? > $@
dodarcs+http dodarcs+ssh : dodarcs.in
	cat $? > $@
dogit dogit+http dogit+ssh : dogit.in
	cat $? > $@
dofile dorsync : dorsync.in
	cat $? > $@
dosvn dosvn+http dosvn+https dosvn+ssh : dosvn.in
	cat $? > $@
dotar+file dotar+ftp dotar+http : dotar.in
	cat $? > $@

built-sources : $(BUILT_SOURCES)
	for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done

distcheck-deps-local : $(DISTCHECK_DEPS)

distcheck-deps : distcheck-deps-subdirs

distcheck-deps-subdirs :
	for s in $(SUBDIRS) . ; do if test x$$s = x. ; then $(MAKE) distcheck-deps-local || exit 1 ; \
	    else $(MAKE) -C $$s distcheck-deps || exit 1 ; fi ; done