## Process this file with automake to create Makefile.in

SUBDIRS = src

EXTRA_DIST = autogen.sh acinclude.m4

# The following is to install the documentation
# It is a bit lengthy because one cannot simply install whole directories (except copying them recursively -- which also takes the .svn directories...)
DOCDIRS = templates \
          examples \
          examples/data \
          examples/ASlibs \
          examples/ASlibs/data \
          examples/ASlibs/profiles \
          examples/BMWlibs \
          examples/BMWlibs/data \
          examples/BMWlibs/profiles \
          html/user \
          html/user/MUSR \
          html/user/pub/Main/SmiliesPluginPSI \
          html/user/pub/Main/WebPreferences \
          html/user/pub/MUSR/LibFitPofB \
          html/user/pub/MUSR/LibZFRelaxation \
          html/user/pub/MUSR/Msr2Data \
          html/user/pub/MUSR/MusrFit \
          html/user/pub/MUSR/MusrGui \
          html/user/pub/MUSR/QuickStart \
          html/user/pub/MUSR/TutorialSingleHisto \
          html/user/pub/System/DocumentGraphics \
          html/user/pub/System/HeadlinesPlugin \
          html/user/pub/System/PatternSkin \
          html/user/pub/System/PatternSkinTheme2009 \
          html/user/pub/System/PsiSkin \
          html/user/pub/System/SkinTemplates
          #html/technical

install-data-hook:
	@$(NORMAL_INSTALL)
	for DIR in $(DOCDIRS); do $(MKDIR_P) $(DOCDIR)/$$DIR; $(INSTALL_DATA) doc/$$DIR/*.* $(DOCDIR)/$$DIR; done
	$(MKDIR_P) $(DOCDIR)/latex_images
	$(INSTALL_DATA) src/musredit/latex_images/*.png $(DOCDIR)/latex_images

uninstall-hook:
	@$(NORMAL_UNINSTALL)
	rm -rf $(DOCDIR)
