aboutsummaryrefslogtreecommitdiff
path: root/common/pdexternal.am
blob: eeda16da7b5bc9fce9cfce52f80a61efd66b2f5e (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
## File: pdexternal.am
## Description: common automake stuff for pd externals
## Usage:
##   + in source-level Makefile.am just do:
##       include $(top_srcdir)/pdexternal.am
##     ... or wherever you copied this file to ...
##-----------------------------------------------------------------------

##-----------------------------------------------------------------------
## Options & Subdirectories

##-- aclocal options (top level only)
#ACLOCAL_AMFLAGS = -I m4 

## --- automake options (top level only)
#AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-zip
#AUTOMAKE_OPTIONS = foreign

##-----------------------------------------------------------------------
## Additional suffixes

DEXT    = @PDEXT@
EXEEXT   = .@PDEXT@

## --- pseudo-deps for '.SUFFIXES'
SUFFIXES = .@PDEXT@ .pod .txt .html

##-----------------------------------------------------------------------
## Additional flags
AM_CPPFLAGS = $(EXTRA_CPPFLAGS)

##-----------------------------------------------------------------------
## Distribution

##--- extra distribution files
EXTRA_DIST = \
	$(PODS) \
	$(PODS:.pod=.txt) \
	$(pddoc_DATA) \
	$(pdext_DATA) \
	$(pdexterns_DATA) \
	$(pdexec_DATA) \
	$(wildcard COPYING) \
	$(wildcard Changes) \
	$(wildcard ChangeLog) \
	$(wildcard README.cvs) \
	$(wildcard depcomp) \
	$(wildcard install-sh) \
	$(wildcard ltmain.sh) \
	$(wildcard mising) \
	$(wildcard mkinstalldirs)


##-----------------------------------------------------------------------
## Rules: .pod

.pod.txt:
	pod2text $< $@

.pod.html:
	pod2html $< --outfile=$@

#all-local: $(PODS:.pod=.txt)


##-----------------------------------------------------------------------
## Cleanup

##--- clean: built by 'make'
CLEANFILES = *.$(PDEXT)

##--- distclean: built by 'configure'
DISTCLEANFILES = \
	config.log	\
	config.cache	\
	config.status

##-- maintainerclean: built by maintainer / by hand
MAINTAINERCLEANFILES = *~ \
	$(PODS:.pod=.txt) \
	Makefile \
	Makefile.in \
	aclocal.m4 \
	compile \
	configure \
	config.h.in \
	config.guess \
	config.sub \
	depcomp \
	install-sh \
	ltmain.sh \
	missing \
	mkinstalldirs \
	stamp-h.in \
	texinfo.tex \
	ylwrap

maintainer-clean-local:
	rm -rf autom4te.cache

.PHONY: cvsclean cvsclean-hook

cvsclean: maintainer-clean ;