File: Makefile.am

package info (click to toggle)
liboping 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,664 kB
  • sloc: sh: 9,724; ansic: 2,565; perl: 207; makefile: 104
file content (34 lines) | stat: -rw-r--r-- 1,009 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
31
32
33
34
EXTRA_DIST = perl/Changes perl/MANIFEST perl/META.yml perl/Makefile.PL \
		perl/Oping.xs perl/README perl/lib/Net/Oping.pm perl/t/Oping.t \
		perl/typemap

all-local: @BINDINGS@
	[ ! -f perl/Makefile ] || ( cd perl && $(MAKE) all )

install-exec-local:
	[ ! -f perl/Makefile ] || ( cd perl && $(MAKE) install )

clean-local:
	[ ! -f perl/Makefile ] || ( cd perl && $(MAKE) realclean )

test:
	[ ! -f perl/Makefile ] || ( cd perl && $(MAKE) test )

perl: perl-bindings

perl-bindings: perl/Makefile
	cd perl && $(MAKE)

# Check if the `perl' directory exists in the _build_ directory. If not, copy
# the files from the _source_ directory.
perl/Makefile: perl/Makefile.PL $(top_builddir)/config.status
	if test ! -d perl; then \
		for file in $(EXTRA_DIST); do \
			mkdir -p `dirname $$file`; \
			cp $(srcdir)/$$file `dirname $$file`; \
		done \
	fi
	cd perl && @PERL@ Makefile.PL PREFIX="$(prefix)" TOP_BUILDDIR="$(top_builddir)" TARGET_LIBDIR="$(libdir)" @PERL_BINDINGS_OPTIONS@

.PHONY: perl perl-bindings