~eda-qa/dhlib/main

« back to all changes in this revision

Viewing changes to app-squix/makefile

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include parent.makefile
 
2
 
 
3
HAXECP += -cp $(abspath .)
 
4
 
 
5
HXSRCPATH=$(abspath .)
 
6
ALLSRC:=$(HXSRC) $(HXLIBSRC)
 
7
 
 
8
all: squix squix-test tutorial1
 
9
 
 
10
test:
 
11
        echo "NOTE: SquixTest is a SWF file"
 
12
 
 
13
squix: Squix.swf 
 
14
Squix.swf: $(ALLSRC) squix/resource.swf squix/Levels.hx squix/Tiles.hx squix/GraftTitleGoodBase.hx
 
15
        $(STDFLASH) -main squix.Main -swf-lib squix/resource.swf -D gamedebug
 
16
 
 
17
squix-test: SquixTest.swf
 
18
SquixTest.swf: $(ALLSRC) 
 
19
        $(STDFLASH) -main squix.test.TestWrapper
 
20
        
 
21
tutorial1: Tutorial1.swf
 
22
Tutorial1.swf: $(ALLSRC)
 
23
        $(STDFLASH) -main squix.Main -swf-lib squix/resource.swf -D gamedebug -D tutorial1
 
24
        
 
25
## TODO: put this somewhere
 
26
## cd flash; haxe squix/test/FlashDefectErase.hxml
 
27
 
 
28
SRCIMAGES=$(wildcard squix/srcimages/*.swf)
 
29
OUTIMAGES=$(SRCIMAGES:squix/srcimages/%=squix/images/%)
 
30
squix/resource.swf: squix/resource.xml $(OUTIMAGES)
 
31
        cd squix; swfmill simple resource.xml resource.swf
 
32
        $(DHLIB_ROOT)/ruby/convert_resources.rb squix/resource.xml ./ $@ hx
 
33
        
 
34
squix/Levels.hx: squix/level_transform.xsl squix/levels.xml
 
35
        cd squix; xalan -q -out Levels.hx -in levels.xml -xsl level_transform.xsl -text
 
36
 
 
37
squix/Tiles.hx: ${wildcard squix/*.tile.xml}
 
38
 
 
39
squix/GraftTitleGoodBase.hx: squix/images/good_face.graft.xml
 
40
        $(DHLIB_ROOT)/ruby/make_graft.rb $< squix GraftTitleGoodBase ./squix
 
41
 
 
42
# SWF Fixups (for Corel bounds problem)
 
43
squix/images/%.swf: squix/srcimages/%.swf
 
44
        $(DHLIB_ROOT)/bin/fixbounds.sh $< $@