################################################################################ ## ## 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 AnalyseSamples.mk ## ## brief Partial makefile to navigate the hierarchy of projects and samples. ## ## author Come Raczy ## ################################################################################ ifeq (,$(currentSamples)) $(error ERROR: project $(project): empty list of samples) endif sample := $(word 1, $(currentSamples)) ifeq (1,$(words $(currentSamples))) currentSamples := else currentSamples := $(wordlist 2, $(words $(currentSamples)), $(currentSamples)) endif currentLanes := $($(project)_$(sample)_LANES) $(project)_$(sample)_DATASET_PAIR_XML_FILES:= $(project)_$(sample)_DATASET_SOURCE_PAIR_XML_FILES:= include $(foreach lane, $(currentLanes), $(MAKEFILES_DIR)/AnalyseLanes.mk) $(project)_DATASET_PAIR_XML_FILES += $($(project)_$(sample)_DATASET_PAIR_XML_FILES) $($(project)_$(sample)_OUT_DIR)/$(sample)$(PAIR_SUFFIX): $($(project)_$(sample)_DATASET_SOURCE_PAIR_XML_FILES) $(CMDPREFIX) $(CONS) --int $^ > $(SAFEPIPETARGET) ifneq (,$($(project)_$(sample)_DATASET_SOURCE_PAIR_XML_FILES)) $(project)_SAMPLE_PAIR_XML_FILES += $($(project)_$(sample)_OUT_DIR)/$(sample)$(PAIR_SUFFIX) endif