Changeset 10336


Ignore:
Timestamp:
04/10/11 10:08:39 (14 years ago)
Author:
tbretz
Message:
Added targets for several kind of help pages (man, html, pdf).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/Makefile.am

    r10302 r10336  
    2727        log logtime argv time \
    2828        test3 dclient5 dserver2 dataLogger
    29 #       sched test ftm ftmctrl
     29#       sched astro test ftm ftmctrl
    3030
    3131lib_LTLIBRARIES = libDim.la libDim++.la libTime.la libTools.la \
    3232                  libConfiguration.la libStateMachine.la
     33#                 libAstro.la
     34
     35dist_man1_MANS = test3.man
    3336
    3437#-------------------------------------------------------------------------
     
    5255        dim_v19r15/README_v18.txt \
    5356        dim_v19r15/README_v19.txt
     57
     58EXTRA_DIST += $(dist_man1_MANS:.man=.html) $(dist_man1_MANS:.man=.pdf)
     59CLEANFILES  = $(dist_man1_MANS:.man=.pdf)  $(dist_man1_MANS:.man=.html)
    5460
    5561dns_LDADD    = libDim.la
     
    122128        src/WindowLog.h       src/WindowLog.cc \
    123129        src/Readline.h        src/Readline.cc \
     130        src/ReadlineColor.h   src/ReadlineColor.cc \
    124131        src/ReadlineWindow.h  src/ReadlineWindow.cc \
    125132        src/Console.h         src/Console.cc \
     
    135142libConfiguration_la_SOURCES = src/Configuration.h src/Configuration.cc
    136143
    137 libTime_la_SOURCES = src/Time.h src/Time.cc
    138 
     144libTime_la_SOURCES  = src/Time.h src/Time.cc
     145#libAstro_la_SOURCES = src/Astro.h src/Astro.cc
    139146libTools_la_SOURCES = src/tools.h src/tools.cc
    140147
     
    159166    libConfiguration.la
    160167
    161 ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.cc src/LocalControl.h
    162 ftmctrl_LDADD   = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \
    163     libConfiguration.la
     168#ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.cc src/LocalControl.h
     169#ftmctrl_LDADD   = libDim.la libDim++.la libTools.la libTime.la libStateMachine.la \
     170#    libConfiguration.la
    164171
    165172#sched_SOURCES = src/sched.cc src/LocalControl.cc src/LocalControl.h
     
    179186time_LDADD = libTime.la
    180187
     188#astro_SOURCES = src/astro.cc
     189#astro_LDADD = libAstro.la libTime.la
     190
    181191#test_SOURCES = src/test.cc
    182192#test_LDADD = libStateMachine.la libTools.la libTime.la libDim.la libDim++.la libConfiguration.la
     
    186196    libConfiguration.la
    187197
     198#-------------------------------------------------------------------------
     199
     200MAN_TARGETS =
     201
     202if HAS_GROFF
     203
     204.man.html: $<
     205        $(AM_V_GEN)groff -mandoc `man -w ./$<` -T html > $@
     206
     207MAN_TARGETS += $(dist_man1_MANS:.man=.html)
     208
     209
     210if HAS_PS2PDF
     211.man.pdf: $<
     212        $(AM_V_GEN)groff -mandoc `man -w ./$<` | ps2pdf - $@
     213
     214MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
     215endif
     216
     217endif
     218
     219if HAS_HELP2MAN
     220$(dist_man1_MANS): $(dist_man1_MANS:.man=)
     221        @mkdir -p man
     222        $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) $(@:.man=)
     223
     224MAN_TARGETS += $(dist_man1_MANS)
     225endif
     226
     227man: $(MAN_TARGETS) doxygen-doc
    188228
    189229
     
    193233
    194234# Overwrite rules for silent or other verbosity levels
    195 # pkg_verbose = $(pkg_verbose_$(V))
    196 #               pkg_verbose_ = $(pkg_verbose_$(AM_DEFAULT_VERBOSITY))
    197 #               pkg_verbose_0 = @echo GEN $@;
    198 #               
    199 #               foo: foo.in
    200 #                       $(pkg_verbose)cp $(srcdir)/foo.in $@
     235#AM_V_MAN = $(AM_MAN_$(V))
     236#AM_MAN_ = $(AM_V_GEN)
     237#AM_MAN_0 = @echo  "  MAN    "$@;
    201238
    202239#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
Note: See TracChangeset for help on using the changeset viewer.