[go: up one dir, main page]

File: Makefile.am

package info (click to toggle)
cppi 1.18-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,936 kB
  • sloc: ansic: 12,443; sh: 7,551; lex: 850; perl: 173; makefile: 47; sed: 16
file content (59 lines) | stat: -rw-r--r-- 1,812 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
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
## Process this file with automake to produce Makefile.in.

AUTOMAKE_OPTIONS = subdir-objects
SUBDIRS = po

ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST = cfg.mk maint.mk .prev-version $(top_srcdir)/.version dist-check.mk

# Arrange so that .tarball-version appears only in the distribution
# tarball, and never in a checked-out repository.
dist-hook: gen-ChangeLog do-not-require-help2man
	echo $(VERSION) > $(distdir)/.tarball-version

# By default (i.e., with initial timestamps), do not run help2man when
# building from a distribution tarball.  Normally, cppi.1 must depend
# on src/cppi, but when building from a distribution tarball, we don't
# want that, to avoid depending on help2man then.  Here is the offending
# dependency:
#   man/cppi.1: $(common_dep) $(srcdir)/man/cppi.x src/cppi
# The trick is simply to s,src/cppi,src/cppi.c/ in the $(distdir)
# we're about to tar and compress.
.PHONY: do-not-require-help2man
do-not-require-help2man:
	perl -pi -e 's,^(man/cppi\.1:.*src/cppi)$$,$$1.c,' \
          $(distdir)/Makefile.in

gen_start_date = 2008-01-03
.PHONY: gen-ChangeLog
gen-ChangeLog:
	if test -d .git; then						\
	  $(top_srcdir)/build-aux/gitlog-to-changelog			\
	    --since=$(gen_start_date) > $(distdir)/cl-t;		\
	  rm -f $(distdir)/ChangeLog;					\
	  mv $(distdir)/cl-t $(distdir)/ChangeLog;			\
	fi

BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
	echo $(VERSION) > $@-t && mv $@-t $@

distcheck-hook:
	$(MAKE) my-distcheck

###############################################
# Initialization before completion by local.mk's.
AM_CFLAGS = $(WARNING_CFLAGS) $(WERROR_CFLAGS)
AM_CPPFLAGS =
CLEANFILES =
DISTCLEANFILES =
MAINTAINERCLEANFILES =
MOSTLYCLEANFILES =
noinst_LIBRARIES =
SUFFIXES =

include lib/local.mk
include src/local.mk
include man/local.mk
include tests/local.mk