################################################################################ ## ## Copyright (c) 2007-2011 Illumina, Inc. ## ## This software is covered by the "Illumina Genome Analyzer Software ## License Agreement" and the "Illumina Source Code License Agreement", ## and certain third party copyright/licenses, and any user of this ## source file is bound by the terms therein (see accompanying files ## Illumina_Genome_Analyzer_Software_License_Agreement.pdf and ## Illumina_Source_Code_License_Agreement.pdf and third party ## copyright/license notices). ## ## This file is part of the Consensus Assessment of Sequence And VAriation ## (CASAVA) software package. ## ## file ProjectLaneSummary.mk ## ## \brief Partial makefile to build the Summary.{xml,xsl,htm} file for the single lane of ## data that belongs to the same project. ## ## This is required to reduce the xml merge comman line length for high-plexity datasets ## ## author Roman Petrovski ## ################################################################################ ifeq (,$(currentLanes)) $(error ERROR: project $(project): sample $(sample): empty list of lanes) endif lane := $(word 1, $(currentLanes)) ifeq (1,$(words $(currentLanes))) currentLanes := else currentLanes := $(wordlist 2, $(words $(currentLanes)), $(currentLanes)) endif $($(project)_SUMMARY_DIR)/s_$(lane)_$(SCORE_XML): lane:=$(lane) $($(project)_SUMMARY_DIR)/s_$(lane)_$(SCORE_XML): \ $($(project)_SUMMARY_DIR)/.sentinel \ $($(project)_$(lane)_SCORE_FILES) $(CMDPREFIX) $(ECHO) '' $(foreach part_summ, $($(project)_$(lane)_SCORE_FILES), \ | $(XSLTPROC) --stringparam with $(part_summ) $(DATA_DIR)/MergeXmlDocuments.xsl -) \ > $(SAFEPIPETARGET) $($(project)_SUMMARY_DIR)/s_$(lane)_$(RESCORE_XML): lane:=$(lane) $($(project)_SUMMARY_DIR)/s_$(lane)_$(RESCORE_XML): \ $($(project)_SUMMARY_DIR)/.sentinel \ $($(project)_$(lane)_RESCORE_FILES) $(CMDPREFIX) $(ECHO) '' $(foreach part_summ, $($(project)_$(lane)_RESCORE_FILES), \ | $(XSLTPROC) --stringparam with $(part_summ) $(DATA_DIR)/MergeXmlDocuments.xsl -) \ > $(SAFEPIPETARGET) $(project)_SCORE_FILES:=$($(project)_SCORE_FILES) $($(project)_SUMMARY_DIR)/s_$(lane)_$(SCORE_XML) $(project)_RESCORE_FILES:=$($(project)_RESCORE_FILES) $($(project)_SUMMARY_DIR)/s_$(lane)_$(RESCORE_XML)