# Copyright (C) 1999-2007 Lorenzo Bettini # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SUFFIXES = .ggo if NO_GENGETOPT .ggo.c: touch $@ else check-regexp_cmd.c: $(srcdir)/check-regexp_cmd.ggo $(GENGETOPT) --input $(srcdir)/check-regexp_cmd.ggo --unamed-opts -F check-regexp_cmd .ggo.c: $(GENGETOPT) --input $< --unamed-opts --no-handle-help --no-handle-version endif bin_PROGRAMS = source-highlight check-regexp bin_SCRIPTS = java2html cpp2html src-hilite-lesspipe.sh EXTRA_PROGRAMS = source-highlight-cgi SRCHILITE = $(top_builddir)/src/source-highlight$(EXEEXT) LIBSUBDIR = $(SUBDIRS) INCLUDES = -I@top_srcdir@/src/lib AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_builddir)/gl LDADD = @LEXLIB@ $(top_builddir)/gl/libgnu.la source_highlight_LDADD = $(BOOST_REGEX_LIB) $(LDADD) lib/libcommon.la source_highlight_cgi_LDADD = $(source_highlight_LDADD) check_regexp_LDADD = $(BOOST_REGEX_LIB) $(top_builddir)/gl/libgnu.la SUBDIRS = \ lib \ includes DIST_SUBDIRS = \ lib \ includes # for most rules, we use one file per line. `diffs' are more clear this way source_highlight_SOURCES = cmdline.c startapp.cc source-highlight.cc check_regexp_SOURCES = check-regexp_cmd.c check-regexp.cpp source_highlight_cgi_SOURCES = cmdline.c startapp-cgi.cc envmapper.c # files that we don't want automake/autoconf to touch ever. # just stick them in the distribution as-is EXTRA_DIST = \ java2html.in \ cpp2html.in \ src-hilite-lesspipe.sh.in \ startapp.h \ envmapper.h \ $(source_highlightdata_DATA) LANGFILES = \ bison.lang cpp.lang javascript.lang perl.lang ruby.lang \ c_comment.lang flex.lang log.lang php.lang sml.lang \ caml.lang function.lang lua.lang prolog.lang symbols.lang \ changelog.lang java.lang number.lang python.lang url.lang \ pascal.lang fortran.lang html.lang latex.lang logtalk.lang \ diff.lang c_string.lang langdef.lang outlang.lang style.lang \ extreme_comment.lang extreme_comment2.lang extreme_comment3.lang \ postscript.lang csharp.lang xml.lang sh.lang script_comment.lang \ tcl.lang sql.lang bib.lang makefile.lang css.lang m4.lang \ default.lang nohilite.lang OUTLANGFILES = \ css_common.outlang \ esc.outlang \ html_common.outlang \ html_notfixed.outlang \ htmlcss.outlang \ htmldoc.outlang \ htmltable.outlang \ html.outlang \ latexdoc.outlang \ latex.outlang \ latexcolordoc.outlang \ latexcolor.outlang \ xhtml_common.outlang \ xhtmlcss.outlang \ xhtmldoc.outlang \ xhtml.outlang \ xhtml_notfixed.outlang \ xhtmltable.outlang \ texinfo.outlang \ javadoc.outlang \ docbook.outlang \ docbookdoc.outlang STYLEFILES = texinfo.style esc.style source_highlightdata_DATA = \ $(LANGFILES) $(OUTLANGFILES) \ $(STYLEFILES) \ default.style style2.style style3.style \ lang.map outlang.map \ default.css # files that are built before distribution gets built #MAINTAINERCLEANFILES = $(BUILT_SOURCES) check: for langfile in $(LANGFILES); do \ $(SRCHILITE) --data-dir=$(srcdir) --check-lang $(srcdir)/$$langfile ; \ done && \ for outlangfile in $(OUTLANGFILES); do \ $(SRCHILITE) --data-dir=$(srcdir) --check-outlang $(srcdir)/$$outlangfile ; \ done tags: ctags --c-types='defgmstuv' --recurse=yes $(srcdir)/* .PHONY: tags noinst_HEADERS = asserttest.h cmdline.h cmdlineargs.h cmdline.ggo check-regexp_cmd.h check-regexp_cmd.ggo