aboutsummaryrefslogtreecommitdiff
path: root/flite/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'flite/Makefile.am')
-rw-r--r--flite/Makefile.am104
1 files changed, 14 insertions, 90 deletions
diff --git a/flite/Makefile.am b/flite/Makefile.am
index 1cec8f7..7ec0528 100644
--- a/flite/Makefile.am
+++ b/flite/Makefile.am
@@ -7,9 +7,17 @@
#-----------------------------------------------------------------------
#-----------------------------------------------------------------------
+# Includes
+#-----------------------------------------------------------------------
+include $(top_srcdir)/pdexternal.am
+
+#-----------------------------------------------------------------------
# Options & Subdirectories
#-----------------------------------------------------------------------
+##-- aclocal options (top level only)
+ACLOCAL_AMFLAGS = -I m4
+
## --- automake options
#AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-zip
AUTOMAKE_OPTIONS = foreign
@@ -17,30 +25,15 @@ AUTOMAKE_OPTIONS = foreign
## --- recursion subdirectories
SUBDIRS = config
-## --- pseudo-deps for '.SUFFIXES'
-SUFFIXES = .pod .txt
-
-#-----------------------------------------------------------------------
-# Flags and variables
+##-----------------------------------------------------------------------
+## Pd Externals: hacked _PROGRAMS
#-----------------------------------------------------------------------
-PD_DIR = @PD_DIR@
-PD_INC = @PD_INC@
-PD_DOCDIR = @PD_DOC@
-PD_EXTDIR = @PD_EXTDIR@
-PDEXT = @EXT@
-
-#-----------------------------------------------------------------------
-# pd externals (hacked 'libexec_*')
-#-----------------------------------------------------------------------
-EXEEXT=.@EXT@
-libexecdir = @PD_EXTDIR@
## --- externals
-libexec_PROGRAMS = flite
+pdext_PROGRAMS = flite
## --- documentation
-datadir = @PD_DOCDIR@
-data_DATA = flite-help.pd
+pddoc_DATA = flite-help.pd
#-----------------------------------------------------------------------
# sources
@@ -50,90 +43,21 @@ flite_SOURCES = flite.c mooPdUtils.h
#-----------------------------------------------------------------------
# external compilation : flags
#-----------------------------------------------------------------------
-DEFS = @DEFS@
-AFLAGS = @AFLAGS@
-DFLAGS = @DFLAGS@
-LFLAGS = @LFLAGS@
-WFLAGS = @WFLAGS@
-OFLAGS = @OFLAGS@
-
-AM_CPPFLAGS = $(DEFS) $(IFLAGS) $(DFLAGS)
-AM_CFLAGS = $(OFLAGS) $(WFLAGS) $(AFLAGS)
flite_LDFLAGS = $(LFLAGS)
flite_LDADD = $(FLITE_VOICELIBS) $(FLITE_LANGLIBS) $(FLITE_LEXLIBS) $(FLITE_LIBS)
#-----------------------------------------------------------------------
-# Variables: cleanup
-#-----------------------------------------------------------------------
-## --- mostlyclean: built by 'make' & commonly rebuilt
-#MOSTLYCLEANFILES =
-
-## --- clean: built by 'make'
-#CLEANFILES =
-
-## --- 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 \
- configure \
- install-sh \
- stamp-h.in \
- config.h.in
-
-maintainer-clean-local:
- rm -rf autom4te.cache
-
-#CVSCLEAN_SUBDIRS = $(SUBDIRS)
-
-#CVSCLEANFILES = Makefile.in Makefile
-
-
-#-----------------------------------------------------------------------
# Additional Variables & Rules: PODS
#-----------------------------------------------------------------------
PODS = README.pod
-.pod.txt:
- pod2text $< $@
-
+all-local: $(PODS:.pod=.txt)
#-----------------------------------------------------------------------
# Variables: distribution
#-----------------------------------------------------------------------
## --- extra distribution files
-EXTRA_DIST = $(PODS:.pod=.txt) $(data_DATA) autogen.sh configure \
- COPYING flite-1.1-noaudio.patch
-
-## --- recursion subdirectories for 'make dist'
-DIST_SUBDIRS = $(SUBDIRS)
-
-## --- dist-hook: when another 'Makefile.am' is overkill
-#DISTHOOK_DIRS = foo
-#DISTHOOK_FILES = foo/bar.txt foo/baz.txt
-#dist-hook:
-# for d in $(DISTHOOK_DIRS); do\
-# mkdir -p $(distdir)/$$d ;\
-# done
-# for f in $(DISTHOOK_FILES); do\
-# cp -p $(srcdir)/$$f $(distdir)/$$f ;\
-# done
-
-#dist-bz2: dist-bzip2 ;
-
-
-#-----------------------------------------------------------------------
-# Rules: cleanup
-#-----------------------------------------------------------------------
-.PHONY: cvsclean cvsclean-hook
-
-cvsclean: maintainer-clean ;
+EXTRA_DIST += flite-1.1-noaudio.patch