################################################################################ ## ## 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 ElandSets.mk ## ## brief Partial makefile to partition a list of fastq files into sets with ## a fixed number of files ($(dataset)_ELAND_FASTQ_FILES_PER_PROCESS). ## ## author Come Raczy ## ################################################################################ ifeq (,$($(dataset)_ELAND_FASTQ_FILES_PER_PROCESS)) $(error ELAND_FASTQ_FILES_PER_PROCESS has not been specified for dataset $(dataset)) endif ifneq (,$(currentFastqSets)) # Create the name for the current set. Sets are sequentially numbered from 1, # left padded with 0 to a width of 3 (001, 002, 003, etc.) currentSetNumber:=$(words newSet $($(dataset)_ELAND_SETS)) ifeq (10,$(currentSetNumber)) setPrefix:=0 endif ifeq (100,$(currentSetNumber)) setPrefix:= endif currentSetName:=$(setPrefix)$(currentSetNumber) # Update the current list of sets $(dataset)_ELAND_SETS:=$($(dataset)_ELAND_SETS) $(currentSetName) # Get the actual set of tiles currentSet:=$(wordlist 1, $($(dataset)_ELAND_FASTQ_FILES_PER_PROCESS), $(currentFastqSets)) $(dataset)_ELAND_SET_$(currentSetName) := $(currentSet) # update the current list of tiles (two steps to get rid of the element at position # $($(dataset)_ELAND_FASTQ_FILES_PER_PROCESS)). # Note, make version 3.78 incorrectly interpret $(wordlist 2, 1, a) as "a" # instead of an empty list, which explains the convoluted update currentFastqSets:=$(wordlist $($(dataset)_ELAND_FASTQ_FILES_PER_PROCESS), $(words $(currentFastqSets)), $(currentFastqSets)) ifeq (1,$(words $(currentFastqSets))) currentFastqSets:= else currentFastqSets:=$(wordlist 2, $(words $(currentFastqSets)), $(currentFastqSets)) endif include $(MAKEFILES_DIR)/ElandSets.mk endif