################################################################################ ## ## 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 AnalyseProjectsAux1.mk ## ## brief Partial makefile to navigate the hierarchy of projects and samples. ## ## author Come Raczy ## ################################################################################ ifeq (,$(currentProjects)) $(error Empty list of projects) endif project := $(word 1, $(currentProjects)) ifeq (1,$(words $(currentProjects))) currentProjects := else currentProjects := $(wordlist 2, $(words $(currentProjects)), $(currentProjects)) endif currentSamples := $($(project)_SAMPLES) $(project)_SAMPLE_PAIR_XML_FILES:= $(project)_DATASET_PAIR_XML_FILES:= include $(foreach sample, $(currentSamples), $(MAKEFILES_DIR)/AnalyseSamples.mk) $(project)_SCORE_FILES:= $(project)_RESCORE_FILES:= # pick unique lanes out of all samples that belong to the project currentLanes := $(sort $(foreach sample, $($(project)_SAMPLES), $(foreach psl, $($(project)_$(sample)_LANES), $(psl)))) include $(foreach lane, $(currentLanes), $(MAKEFILES_DIR)/ProjectLaneSummary.mk) include $(MAKEFILES_DIR)/ProjectSummary.mk