# makefile for panorama stitching, created by hugin 

# the output panorama
TARGET_PREFIX=4e_jour^ 127-140_Sarhro_Boumalne
TARGET=4e_jour^ 127-140_Sarhro_Boumalne.tif
PROJECT_FILE=E:\Photo\Generale\08_01_Maroc\4e_jour^ 127-140_Sarhro_Boumalne.pto

# Input images
INPUT_IMAGES=E:\Photo\Generale\08_01_Maroc\4e_jour^ 127.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 128.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 129.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 130.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 131.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 132.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 133.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 134.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 135.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 136.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 137.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 138.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 139.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 140.jpg 

# remapped images
REMAPPED_IMAGES=4e_jour^ 127-140_Sarhro_Boumalne0000.tif 4e_jour^ 127-140_Sarhro_Boumalne0001.tif 4e_jour^ 127-140_Sarhro_Boumalne0002.tif 4e_jour^ 127-140_Sarhro_Boumalne0003.tif 4e_jour^ 127-140_Sarhro_Boumalne0004.tif 4e_jour^ 127-140_Sarhro_Boumalne0005.tif 4e_jour^ 127-140_Sarhro_Boumalne0006.tif 4e_jour^ 127-140_Sarhro_Boumalne0007.tif 4e_jour^ 127-140_Sarhro_Boumalne0008.tif 4e_jour^ 127-140_Sarhro_Boumalne0009.tif 4e_jour^ 127-140_Sarhro_Boumalne0010.tif 4e_jour^ 127-140_Sarhro_Boumalne0011.tif 4e_jour^ 127-140_Sarhro_Boumalne0012.tif 4e_jour^ 127-140_Sarhro_Boumalne0013.tif 

# Tool configuration
NONA=C:\Program^ Files\hugin-0.7_beta4_windows/xrc/..\nona.exe
PTSTITCHER=PTStitcher
PTMENDER=C:\Program^ Files\hugin-0.7_beta4_windows/xrc/..\PTmender.exe
PTBLENDER=C:\Program^ Files\hugin-0.7_beta4_windows/xrc/..\PTblender.exe
PTMASKER=C:\Program^ Files\hugin-0.7_beta4_windows/xrc/..\PTblender.exe
PTROLLER=C:\Program^ Files\hugin-0.7_beta4_windows/xrc/..\PTroller.exe
ENBLEND=C:\Program^ Files\hugin-0.7_beta4_windows/xrc/..\enblend.exe
SMARTBLEND=smartblend.exe

# options for the programs
ENBLEND_OPTS=-v  -w -f17126x2377


# including template C:\Program Files\hugin-0.7_beta4_windows/xrc/data/ptmender_enblend.mk
# Rules for generating the pano

all: $(TARGET)

clean: $(REMAPPED_IMAGES)
	$(RM) $(REMAPPED_IMAGES)

$(REMAPPED_IMAGES): $(INPUT_IMAGES)
	$(PTmender) -o $(TARGET_PREFIX) $(PROJECT_FILE)

$(TARGET): $(REMAPPED_IMAGES)
	$(RM) $(TARGET)
	$(ENBLEND) $(ENBLEND_OPTS) -o $(TARGET) $(REMAPPED_IMAGES)


