# makefile for panorama stitching, created by hugin 

# the output panorama
TARGET_PREFIX=4e_jour^ 091-094_Sarhro
TARGET=4e_jour^ 091-094_Sarhro.tif
PROJECT_FILE=E:\Photo\Generale\08_01_Maroc\4e_jour^ 091-094_Sarhro.pto

# Input images
INPUT_IMAGES=E:\Photo\Generale\08_01_Maroc\4e_jour^ 091.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 092.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 093.jpg E:\Photo\Generale\08_01_Maroc\4e_jour^ 094.jpg 

# remapped images
REMAPPED_IMAGES=4e_jour^ 091-094_Sarhro0000.tif 4e_jour^ 091-094_Sarhro0001.tif 4e_jour^ 091-094_Sarhro0002.tif 4e_jour^ 091-094_Sarhro0003.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  -f6761x2736


# 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)


