Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

realized I didn't include the 'Makefile' needed to run the minificati…

…on tool
  • Loading branch information...
commit 19d095d3032fe221f55d487a72ddf103c4ee348f 1 parent 022f9c2
Diego Perini authored
Showing with 55 additions and 0 deletions.
  1. +55 −0 Makefile
55 Makefile
View
@@ -0,0 +1,55 @@
+# Makefile
+#
+# NWMatcher distribution builder
+#
+# currently just a wrapper for:
+#
+# - nwjslint.sh (writes to lint.log)
+# - nwpackjs.sh (writes to dist.log)
+#
+
+# getting path
+SOURCES=./
+
+# resets default rules
+.SUFFIXES:
+
+# just in case they exists
+.PHONY: all clean dist lint test
+
+# add a SILENT flag to stop
+# showing directories access
+ifeq ($(filter -s,$(MAKEFLAGS)),)
+MAKEFLAGS += -s
+endif
+
+# shell scripts
+SCRIPTS=${SOURCES}/build/scripts
+
+# default all stages
+all:
+ @make clean ${SOURCES}
+ @make lint ${SOURCES}
+ @make dist ${SOURCES}
+ @make test ${SOURCES}
+
+# clean stage
+clean:
+ @rm -f dist/nwmatcher.js
+ @rm -f dist/nwmatcher-min.js
+ @rm -f dist/nwmatcher-pac.js
+ @rm -f dist/nwmatcher-src.js
+ @rm -f dist/nwmatcher-zip.js
+ @rm -f dist/lint.log
+
+# dist stage
+dist:
+ @${SCRIPTS}/nwpackjs.sh ${SOURCES}
+
+# lint stage
+lint:
+ @${SCRIPTS}/nwjslint.sh ${SOURCES}
+
+# test stage
+test:
+ @${SCRIPTS}/nwtestjs.sh ${SOURCES}
Please sign in to comment.
Something went wrong with that request. Please try again.