File: Makefile.am

package info (click to toggle)
ndisc6 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,776 kB
  • sloc: sh: 5,057; ansic: 4,106; makefile: 184; perl: 35; sed: 16
file content (72 lines) | stat: -rw-r--r-- 1,656 bytes parent folder | download | duplicates (2)
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
71
72
# Makefile.am - master Makefile for ndisc6

# Copyright © 2006 Rémi Denis-Courmont
# This file is distributed under the same license as the ndisc6 package.

ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = \
	1.11 \
	check-news \
	dist-bzip2 \
	no-dist-gzip \
	no-exeext \
	std-options \
	subdir-objects \
	-Wall

EXTRA_DIST =
DISTCLEANFILES = stamp-git
CLEANFILES =
MOSTLYCLEANFILES =

AM_CPPFLAGS = -I$(top_srcdir)/include \
	-DLOCALEDIR=\"$(localedir)\" \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DLOCALSTATEDIR=\"$(localstatedir)\"
AM_LIBADD = libcompat.a

noinst_HEADERS = include/gettext.h

sed_verbose = $(sed_verbose_$(V))
sed_verbose_ = $(sed_verbose_$(AM_DEFAULT_VERBOSITY))
sed_verbose_0 = @echo "  SED      $@";

subst_script = sed \
	-e 's,[@]LOCALSTATEDIR[@],$(localstatedir),g' \
	-e 's,[@]SYSCONFDIR[@],$(sysconfdir),g' \
	-e 's,[@]PERL[@],$(PERL),g' \
	-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
	-e 's,[@]VERSION[@],$(VERSION),g'

include m4/Makefile.am
include doc/Makefile.am
include compat/Makefile.am
include src/Makefile.am
include rdnss/Makefile.am

SUBDIRS = po

distclean-local:
	test "$(top_srcdir)" = "$(top_builddir)" || rm -f ChangeLog

dist-hook: stamp-git

stamp-git:
	@LANG=C ; \
	rev=$$(cd "$(scrdir)" && git describe || echo exported) ; \
	oldrev=$$(cat stamp-git 2>/dev/null || true) ; \
	if test "$$rev" != "$$oldrev"; then \
		echo "New revision is: $$rev" ; \
		if test "$$rev" != "exported"; then \
			echo -n "Rebuilding ChangeLog... " ; \
			(cd "$(srcdir)" && git log) > ChangeLog || exit $$? ; \
			echo "OK" ; \
		fi ; \
	fi
	echo "$$rev" > stamp-git

ChangeLog:
	$(MAKE) $(AM_MAKEFLAGS) stamp-git
	touch $@

.PHONY: stamp-git