Permalink
Browse files

Better loging in Makefile

  • Loading branch information...
1 parent d40cdca commit 1c31366f7ddbc00fede7fd24778602d243cfa626 @miripiruni miripiruni committed Feb 19, 2012
Showing with 36 additions and 35 deletions.
  1. +36 −35 Makefile
View
@@ -10,53 +10,54 @@ PATH_TO_NOTEPAD_P_P_PLUGIN = $(PATH_TO_PLUGINS)/csscomb.notepad_plus_plus
PATH_TO_INTELLIJ_PLUGIN = $(PATH_TO_PLUGINS)/csscomb.webstorm_pycharm_idea
buildAll: updateVersion buildCli copyCore buildPlugins buildWww
+ @echo 'Successfully done.'
updateVersion:
- #
- # Update version:
- sed -i '' 's/[0-9].[0-9]\{2\} (build [0-9]\{10\})/$(MAJOR_VERSION).$(MINOR_VERSION) \(build $(BUILD_TIMESTAMP)\)/' $(PATH_TO_CORE) cli/cli.php $(PATH_TO_CODA_PLUGIN)/csscomb.php $(PATH_TO_TEXTMATE_PLUGIN)/Commands/CSScomb.tmCommand
+ @echo 'Updating version...'
+ @sed -i '' 's/[0-9].[0-9]\{2\} (build [0-9]\{10\})/$(MAJOR_VERSION).$(MINOR_VERSION) \(build $(BUILD_TIMESTAMP)\)/' $(PATH_TO_CORE) cli/cli.php $(PATH_TO_CODA_PLUGIN)/csscomb.php $(PATH_TO_TEXTMATE_PLUGIN)/Commands/CSScomb.tmCommand
buildCli:
- #
- # Build CLI:
- cp $(PATH_TO_CORE) cli/csscomb.php
- sed '1d' < cli/cli.php >> cli/csscomb.php
+ @echo 'Building CLI...'
+ @cp $(PATH_TO_CORE) cli/csscomb.php
+ @sed '1d' < cli/cli.php >> cli/csscomb.php
copyCore:
- #
- cp $(PATH_TO_CORE) www/$(PATH_TO_CORE)
- cp $(PATH_TO_CORE) $(PATH_TO_CODA_PLUGIN)/Support\ Files/csscomb.php
- cp $(PATH_TO_CORE) $(PATH_TO_TEXTMATE_PLUGIN)/Support/lib/csscomb.php
+ @echo 'Copying CLI...'
+ @cp $(PATH_TO_CORE) www/$(PATH_TO_CORE)
+ @cp $(PATH_TO_CORE) $(PATH_TO_CODA_PLUGIN)/Support\ Files/csscomb.php
+ @cp $(PATH_TO_CORE) $(PATH_TO_TEXTMATE_PLUGIN)/Support/lib/csscomb.php
buildPlugins: buildNotepadPlugin buildIntellijPlugin
- mkdir -p build
- tar -c -z $(PATH_TO_CODA_PLUGIN) > build/csscomb-for-coda-$(MAJOR_VERSION)-$(MINOR_VERSION).tar
- tar -c -z $(PATH_TO_TEXTMATE_PLUGIN) > build/csscomb-for-textmate-$(MAJOR_VERSION)-$(MINOR_VERSION).tar
- tar -c -z $(PATH_TO_NOTEPAD_P_P_PLUGIN) > build/csscomb-for-notepad_plus_plus-$(MAJOR_VERSION)-$(MINOR_VERSION).tar
- tar -c -z $(PATH_TO_INTELLIJ_PLUGIN) > build/csscomb-for-webstorm_pycharm_idea-$(MAJOR_VERSION)-$(MINOR_VERSION).tar
+ @echo 'Making archives for plugins...'
+ @mkdir -p build
+ @tar -c -z $(PATH_TO_CODA_PLUGIN) > build/csscomb-for-coda-$(MAJOR_VERSION)-$(MINOR_VERSION).tar
+ @tar -c -z $(PATH_TO_TEXTMATE_PLUGIN) > build/csscomb-for-textmate-$(MAJOR_VERSION)-$(MINOR_VERSION).tar
+ @tar -c -z $(PATH_TO_NOTEPAD_P_P_PLUGIN) > build/csscomb-for-notepad_plus_plus-$(MAJOR_VERSION)-$(MINOR_VERSION).tar
+ @tar -c -z $(PATH_TO_INTELLIJ_PLUGIN) > build/csscomb-for-webstorm_pycharm_idea-$(MAJOR_VERSION)-$(MINOR_VERSION).tar
buildNotepadPlugin:
- #
- # Notepad++:
- cp $(PATH_TO_CORE) $(PATH_TO_NOTEPAD_P_P_PLUGIN)/csscomb.php
- sed '1d' < $(PATH_TO_NOTEPAD_P_P_PLUGIN)/call.php >> $(PATH_TO_NOTEPAD_P_P_PLUGIN)/csscomb.php
+ @echo 'Building plugin for Notepad++...'
+ @cp $(PATH_TO_CORE) $(PATH_TO_NOTEPAD_P_P_PLUGIN)/csscomb.php
+ @sed '1d' < $(PATH_TO_NOTEPAD_P_P_PLUGIN)/call.php >> $(PATH_TO_NOTEPAD_P_P_PLUGIN)/csscomb.php
buildIntellijPlugin:
- #
- # IntelliJ IDEA / PyStorm / WebStorm:
- cp $(PATH_TO_CORE) $(PATH_TO_INTELLIJ_PLUGIN)/csscomb.php
- sed '1d' < $(PATH_TO_INTELLIJ_PLUGIN)/call.php >> $(PATH_TO_INTELLIJ_PLUGIN)/csscomb.php
-
-buildWww: useCscomb
- java -jar yuicompressor-2.4.7.jar www/static/css/style.css > www/static/_css/style.css
- java -jar yuicompressor-2.4.7.jar www/static/css/tests.css > www/static/_css/tests.css
- java -jar yuicompressor-2.4.7.jar www/static/js/online.js > www/static/_js/online.js
- java -jar yuicompressor-2.4.7.jar www/static/js/tests.js > www/static/_js/tests.js
- java -jar yuicompressor-2.4.7.jar www/static/js/jquery.textarea.js > www/static/_js/jquery.textarea.js
- java -jar yuicompressor-2.4.7.jar www/static/js/jquery.freeze.js > www/static/_js/jquery.freeze.js
+ @echo 'Building plugins for IntelliJ IDEA / PyStorm / WebStorm...'
+ @cp $(PATH_TO_CORE) $(PATH_TO_INTELLIJ_PLUGIN)/csscomb.php
+ @sed '1d' < $(PATH_TO_INTELLIJ_PLUGIN)/call.php >> $(PATH_TO_INTELLIJ_PLUGIN)/csscomb.php
+
+buildWww: useCsscomb
+ @echo 'Minifying CSS & JS...'
+ @java -jar yuicompressor-2.4.7.jar www/static/css/style.css > www/static/_css/style.css
+ @java -jar yuicompressor-2.4.7.jar www/static/css/tests.css > www/static/_css/tests.css
+ @java -jar yuicompressor-2.4.7.jar www/static/js/online.js > www/static/_js/online.js
+ @java -jar yuicompressor-2.4.7.jar www/static/js/tests.js > www/static/_js/tests.js
+ @java -jar yuicompressor-2.4.7.jar www/static/js/jquery.textarea.js > www/static/_js/jquery.textarea.js
+ @java -jar yuicompressor-2.4.7.jar www/static/js/jquery.freeze.js > www/static/_js/jquery.freeze.js
- cat www/static/_css/style.css www/static/_css/tests.css > www/static/_css/csscomb.css
- cat www/static/_js/jquery.shortcuts.min.js www/static/_js/jquery.textarea.js > www/static/_js/csscomb.js
+ @echo 'Concatenating CSS & JS to bundle...'
+ @cat www/static/_css/style.css www/static/_css/tests.css > www/static/_css/csscomb.css
+ @cat www/static/_js/jquery.shortcuts.min.js www/static/_js/jquery.textarea.js > www/static/_js/csscomb.js
useCsscomb:
- php cli/csscomb.php -i www/static/css
+ @echo 'Using CSScomb for CSScomb web site...'
+ @php cli/csscomb.php -i www/static/css

0 comments on commit 1c31366

Please sign in to comment.