###########################################################################
#
# Makefile system for GILDAS softwares (2003-2019).
#
# Please be careful: element order often matters in makefiles.
#
###########################################################################

include $(gagadmdir)/Makefile.def

###########################################################################

DOC_IDS = imager imager-bugs

###########################################################################

include $(gagadmdir)/Makefile.doc

# Specific targets and rules: 
change_program.tex: ../lib/deconv.f90
	grep v_program ../lib/deconv.f90 | grep =*! > change_program.tex

change_display.tex: ../lib/deconv.f90
	grep v_display ../lib/deconv.f90 | grep =*! > change_display.tex

change_clean.tex: ../lib/deconv.f90
	grep v_clean ../lib/deconv.f90 | grep =*! > change_clean.tex

change_cal.tex: ../lib/deconv.f90
	grep v_cal ../lib/deconv.f90 | grep =*! > change_cal.tex

change_advanced.tex: ../lib/deconv.f90
	grep v_advanced ../lib/deconv.f90 | grep =*! > change_advanced.tex

change_bundles.tex: ../lib/deconv.f90
	grep v_bundles ../lib/deconv.f90 | grep =*! > change_bundles.tex

change_imager.tex: ../lib/deconv.f90
	grep v_imager ../lib/deconv.f90 | grep =*! > change_imager.tex


###########################################################################

imager.pdf imager-html: imager.tex imager.bib preamble.tex		\
      basic-concepts.tex uv-table.tex single-field.tex wide-field.tex	\
      self-calibration.tex view-show.tex all-in-one.tex			\
      polarization.tex app-casa.tex uv-plane.tex continuum.tex bugs.tex \
      bundles.tex imager-version.tex
#			imager-help-clean.tex imager-help-news.tex imager-help-calib.tex \

imager-bugs.pdf imager-bugs-html: imager-bugs.tex bugs.tex change_program.tex \
	change_display.tex change_clean.tex change_cal.tex change_advanced.tex \
	change_bundles.tex change_imager.tex imager-version.tex

imager-help-clean.hlp: imager-help-clean-input.nroff		\
                       imager-help-clean-clean-list.nroff	\
                       imager-help-clean-clean-desc.nroff	\
                       imager-help-clean-uvmap-list.nroff	\
                       imager-help-clean-uvmap-desc.nroff

imager-help-news.hlp: imager-help-uvshort.nroff 

imager-help-bundles.hlp: imager-help-bundles.nroff imager-help-selfcal.nroff imager-help-kepler.nroff

imager-help-calib.hlp: imager-help-calib.nroff

imager-help-display.hlp: imager-help-display.nroff

imager-help-imager.hlp: imager-help-imager.nroff

kepler-help.hlp: kepler-help.nroff
###########################################################################
