Makefile
changeset 57 94e1b2d0bd31
parent 50 0bda4161d1b9
child 77 c2bad6178c65
equal deleted inserted replaced
56:76d257640b7d 57:94e1b2d0bd31
    86 sfpkgname = js-2048-ai
    86 sfpkgname = js-2048-ai
    87 fullpkgname = $(pkgname)-$(vmajor).$(vminor)
    87 fullpkgname = $(pkgname)-$(vmajor).$(vminor)
    88 
    88 
    89 DIST_DIR = $(fullpkgname)
    89 DIST_DIR = $(fullpkgname)
    90 
    90 
    91 WWW_FILES := $(wildcard *.js) $(wildcard *.html)
    91 JS_FILES := $(wildcard *.js)
       
    92 HTML_FILES := $(wildcard *.html)
       
    93 WWW_FILES := $(JS_FILES) $(HTML_FILES)
    92 
    94 
    93 DIST_FILES = $(WWW_FILES) README.rst VERSION
    95 DIST_FILES = $(WWW_FILES) README.rst VERSION
    94 
    96 
    95 DIST_TARBALLS = $(DIST_DIR).tar.gz $(DIST_DIR).zip
    97 DIST_TARBALLS = $(DIST_DIR).tar.gz $(DIST_DIR).zip
       
    98 
       
    99 JSDOC_DIR := jsdoc
    96 
   100 
    97 ################################################################
   101 ################################################################
    98 # Deploy targets.
   102 # Deploy targets.
    99 
   103 
   100 ifeq '' '$(SF_USER)'
   104 ifeq '' '$(SF_USER)'
   197 echo; \
   201 echo; \
   198 echo Supported targets:; \
   202 echo Supported targets:; \
   199 echo; \
   203 echo; \
   200 sed -n -e '/^[[:alnum:]_-]*:/{s=^\(.*\):.*=  \1=;p;}' $(BUILD_SCRIPTS)
   204 sed -n -e '/^[[:alnum:]_-]*:/{s=^\(.*\):.*=  \1=;p;}' $(BUILD_SCRIPTS)
   201 
   205 
       
   206 .PHONY: jsdoc
       
   207 jsdoc:
       
   208 	jsdoc -a -p -d=$(JSDOC_DIR) $(JS_FILES)
       
   209 
   202 ################################################################
   210 ################################################################
   203 # Clean targets.
   211 # Clean targets.
   204 
   212 
   205 .PHONY: distclean
   213 .PHONY: distclean
   206 distclean: clean
   214 distclean: clean
   207 	rm -f VERSION
   215 	rm -f VERSION
   208 
   216 
   209 .PHONY: clean
   217 .PHONY: clean
   210 clean:
   218 clean:
   211 	rm -rf $(DIST_DIR) $(DIST_TARBALLS)
   219 	rm -rf $(JSDOC_DIR) $(DIST_DIR) $(DIST_TARBALLS)
       
   220