
include $(top_srcdir)/config/all.mk

#
#   Predifined make variables for installing files
#
#   http://sources.redhat.com/automake/automake.html#Include
#
#   make var.        default                    configure arg.         description
#   -------------------------------------------------------------------------------------------------------------
#   $(prefix)                                    --prefix=DIR           architecture-independent files
#   $(exec_prefix)      $(prefix)                --bindir=DIR           architecture-dependent files
#   $(bindir)           $(exec_prefix)/bin       --bindir=DIR           user executables
#   $(sbindir)          $(exec_prefix}/sbin      --sbindir=DIR          system admin executables
#   $(libdir)           $(prefix)/lib            --libdir=DIR           object code libraries
#   $(libexecdir)       $(exec_prefix}/lib       --libexecdir=DIR       program executables
#   $(sysconfdir)       $(prefix)/etc            --sysconfdir=DIR       read-only single-machine data
#   $(sharedstatedir)   $(prefix)/com            --sharedstatedir=DIR   modifiable architecture-independent data
#   $(localstatedir)    $(prefix)/var            --localstatedir=DIR    modifiable single-machine data
#   $(includedir)       $(prefix))/include       --includedir=DIR       C header files
#   $(oldincludedir)    /usr/include             --oldincludedir=DIR    C header files for non-gcc
#   $(datarootdir)      $(prefix)/share          --datarootdir=DIR      read-only arch.-independent data root
#   $(datadir)          $(datarootdir)           --datadir=DIR          read-only architecture-independent data
#   $(infodir)          $(datarootdir)/info      --infodir=DIR          info documentation
#   $(localedir)        $(datarootdir)/locale    --localedir=DIR        locale-dependent data
#   $(mandir)           $(datarootdir)/man       --mandir=DIR           man documentation
#   $(docdir)           $(datarootdir)/doc/${PACKAGE_TARNAME}
#                                                --docdir=DIR           documentation root
#   $(htmldir)          $(docdir)                --htmldir=DIR          html documentation
#   $(dvidir)           $(docdir)                --dvidir=DIR           dvi documentation
#   $(pdfdir)           $(docdir)                --pdfdir=DIR           pdf documentation
#   $(psdir)            $(docdir)                --psdir=DIR            ps documentation



SUBDIRS = #data

# Configuration files, go to $INSROOT/etc
etcdir=$(sysconfdir)

dist_etc_DATA = \
alias.cfg \
tan.sh

tcs_iifdir=$(sysconfdir)
nobase_tcs_iif_DATA = \
tcs_iif/ltcs.iif-fits.xml \
tcs_iif/ltcs.iif-dev.cfg \
tcs_iif/ltcs.iif-svc.cfg \
tcs_iif/ltcs.iif-svr.cfg

calunitdir=$(sysconfdir)/calunit_ctrl
dist_calunit_DATA = calunit_ctrl/*

monitdir=$(sysconfdir)/monit.d
dist_monit_DATA = monit.d/*.monit

motiondir=$(sysconfdir)
nobase_motion_DATA = \
motion_ctrl/motion_ctrl-svr.cfg \
motion_ctrl/wheels/*.cfg \
motion_ctrl/stages/*.cfg \
motion_ctrl/wheels-DUMMY/*.cfg \
motion_ctrl/stages-DUMMY/*.cfg

obsdir=$(sysconfdir)
nobase_obs_DATA= \
obs_ctrl/obs_ctrl-ice.cfg

trackingdir=$(sysconfdir)
nobase_tracking_DATA= \
track_ctrl/*.cfg

tiptiltdir=$(sysconfdir)
nobase_tiptilt_DATA= \
tiptilt_ctrl/tiptilt_ctrl-svr.cfg
# tiptilt_ctrl/BCUTTController.ldr \
# tiptilt_ctrl/rtc/BAX191-DM97-coords.dat \
# tiptilt_ctrl/rtc/BAX479-DM97-ALPAO-IF.dat \
# tiptilt_ctrl/rtc/BAX479-DM97-map.dat \
# tiptilt_ctrl/rtc/BAX479-DM97-sign.dat \
# tiptilt_ctrl/rtc/m2cs/20220603-Zernike-FullPupil-Arcetri-1u-rms-4rtc.dat \
# tiptilt_ctrl/rtc/dm_flats/dm_shape_2023-03-20-16-19-46_int_138b_90el_T-4C_0as.txt \
# tiptilt_ctrl/rtc/darks/dark64x64_1000Hz+20deg_14_02_22.dat

datamgrdir=$(sysconfdir)
nobase_datamgr_DATA= \
data_mgr/data_mgr-ice.cfg

install-data-hook:
	chmod 755 $(sysconfdir)/tan.sh

#
# http://sources.redhat.com/automake/automake.html#Sources
#

# files that have to go in the dist (project archive).

# Example:
EXTRA_DIST =
