Commit 13ce39a8 authored by Adrien Dorsaz's avatar Adrien Dorsaz

Makefile: update targets to be more precise (especially with 3rdparty directory)

parent 06dac611
......@@ -15,12 +15,23 @@
# You should have received a copy of the GNU General Public License
# along with XMPP Pane. If not, see <http://www.gnu.org/licenses/>.
build: beautify-js
zip ../xmpp-pane.zip -FS -r *
.PHONY: build-dev build-zip beautifyjs
buid-zip:
# Sync all files except 3rdparty and git directory
zip ../xmpp-pane.zip -FS -R '*' \
-x 'src/3rdparty/*' '.git/*'
# For 3rdparty, uses a limited list of files to include
zip ../xmpp-pane.zip 'src/3rdparty/mustache.js/mustache.js'
build-dev: beautify-js build-zip
beautify-js:
find \( -name "*.js" -o -name "*.json" \) -exec \
js-beautify --indent-size=4 --indent-char=' ' --jslint-happy \
--operator-position after-newline --brace-style end-expand --replace \
--end-with-newline \
find -path './src/3rdparty' -prune \
-o -path './.git/*' -prune \
-o \( -name "*.js" -o -name "*.json" \) \
-exec js-beautify --indent-size=4 --indent-char=' ' --jslint-happy \
--operator-position after-newline --brace-style end-expand --replace \
--end-with-newline \
{} \;
......@@ -24,7 +24,7 @@
"message": "XMPP Identifier"
},
"xmpp-identifier-placeholder":{
"xmpp-identifier-placeholder": {
"description": "Placeholder used to show an example of XMPP Identifier",
"message": "john.smith@example.com"
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment