################################################################################ ## ## 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 AnalyseBarcodes.mk ## ## brief Partial makefile to navigate the hierarchy of projects and samples. ## ## author Come Raczy ## ################################################################################ ifeq (,$(currentBarcodes)) $(error ERROR: project $(project): empty list of samples) endif barcode := $(word 1, $(currentBarcodes)) ifeq (1,$(words $(currentBarcodes))) currentBarcodes := else currentBarcodes := $(wordlist 2, $(words $(currentBarcodes)), $(currentBarcodes)) endif # Target to create the config file for this dataset datasetConfig := Makefiles/$(project)_$(sample)_$(barcode)_L00$(lane).mk $(datasetConfig): project := $(project) $(datasetConfig): sample := $(sample) $(datasetConfig): lane := $(lane) $(datasetConfig): barcode := $(barcode) $(datasetConfig): config.xml Makefiles/config.mk $(CONFIGURE_DATASET) --project "$(project)" --sample "$(sample)" \ --barcode "$(barcode)" --lane "$(lane)" \ --reference "$($(project)_$(sample)_$(lane)_$(barcode)_REFERENCE)" $< > $(SAFEPIPETARGET) include $(datasetConfig) .PHONY: $($(dataset)_POSTRUN) $($(dataset)_POSTRUN): $($(dataset)_TARGET) ( $(LOG_INFO) analysis $($(dataset)_ANALYSIS) finished successfully for $(dataset).); $($(dataset)_DATASET_POST_RUN_COMMAND)