organizing as and swc files a bit more sanely
This commit is contained in:
7
Makefile
7
Makefile
@@ -16,21 +16,20 @@ SWFS = $(patsubst %.mxml,%.swf,$(wildcard [0-9]*-*/*.mxml))
|
||||
|
||||
|
||||
# define all target swc paths (same as with swf paths above)
|
||||
SWCS = $(patsubst %.as,%.swc,$(wildcard comps/*.as))
|
||||
SWCS = $(patsubst %.as,%.swc,$(wildcard com/ag/*.as))
|
||||
|
||||
|
||||
# define an implicit build rule for any file matching %.swf,
|
||||
# using the $< (input) and $@ (output) automatic variables
|
||||
%.swf : %.mxml
|
||||
$(MXMLC) $< -warnings -l+=./comps -output $@
|
||||
$(MXMLC) $< -warnings -l+=./com/ag -output $@
|
||||
|
||||
|
||||
# define an implicit build rule for any file matching %.swc,
|
||||
# using the $< (input) and $@ (output) automatic variables
|
||||
# just like with the %.swf implicit rule above
|
||||
%.swc : %.as
|
||||
_CLS=$$(echo $< | sed 's@.*/\(.*\)\..*$$@\1@') && \
|
||||
$(COMPC) -sp ./comps -output $@ -include-classes $$_CLS
|
||||
$(COMPC) -sp+=./ -output $@ -include-classes $(subst /,.,$(basename $<))
|
||||
|
||||
|
||||
# build all expected swf and swc files
|
||||
|
Reference in New Issue
Block a user