Skip to content

Instantly share code, notes, and snippets.

@asandroq
Created July 23, 2010 13:10
Show Gist options
  • Save asandroq/487417 to your computer and use it in GitHub Desktop.
Save asandroq/487417 to your computer and use it in GitHub Desktop.
POVRAY = povray
CONVERT = convert
ifeq ($(BASE),)
BASE = board
endif
ifeq ($(TYPE),)
TYPE = tiff
endif
FINAL = $(BASE)@2x.$(TYPE)
PART1 = $(BASE)@2x_1.$(TYPE)
PART2 = $(BASE)@2x_2.$(TYPE)
PART1_1 = $(BASE)@2x_1_1.$(TYPE)
PART1_2 = $(BASE)@2x_1_2.$(TYPE)
PART2_1 = $(BASE)@2x_2_1.$(TYPE)
PART2_2 = $(BASE)@2x_2_2.$(TYPE)
$(FINAL): $(PART1) $(PART2)
$(CONVERT) $(PART1) $(PART2) -append $(FINAL)
$(PART1): $(PART1_1) $(PART1_2)
$(CONVERT) $(PART1_1) $(PART1_2) -append $(PART1)
$(PART2): $(PART2_1) $(PART2_2)
$(CONVERT) $(PART2_1) $(PART2_2) -append $(PART2)
$(PART1_1): $(BASE).ini $(BASE).pov cvelvet.inc
$(POVRAY) $(BASE)[HiDef] +SR1 +ER240 +Otmp_$(PART1_1)
$(CONVERT) tmp_$(PART1_1) -crop 640x240+0+0 +repage $(PART1_1)
$(PART1_2): $(BASE).ini $(BASE).pov cvelvet.inc
$(POVRAY) $(BASE)[HiDef] +SR241 +ER480 +Otmp_$(PART1_2)
$(CONVERT) tmp_$(PART1_2) -crop 640x240+0+240 +repage $(PART1_2)
$(PART2_1): $(BASE).ini $(BASE).pov cvelvet.inc
$(POVRAY) $(BASE)[HiDef] +SR481 +ER720 +Otmp_$(PART2_1)
$(CONVERT) tmp_$(PART2_1) -crop 640x240+0+480 +repage $(PART2_1)
$(PART2_2): $(BASE).ini $(BASE).pov cvelvet.inc
$(POVRAY) $(BASE)[HiDef] +SR721 +ER960 +Otmp_$(PART2_2)
$(CONVERT) tmp_$(PART2_2) -crop 640x240+0+720 +repage $(PART2_2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment