Index: trunk/extensions/UsabilityInitiative/Makefile |
— | — | @@ -57,15 +57,31 @@ |
58 | 58 | Vector/Modules/FooterCleanup/FooterCleanup.js\ |
59 | 59 | Vector/Modules/SimpleSearch/SimpleSearch.js |
60 | 60 | |
61 | | -all: \ |
| 61 | +USABILITYINITIATIVE_HOOKS := \ |
62 | 62 | css/combined.css\ |
63 | 63 | css/combined.min.css\ |
| 64 | + $(CSS)\ |
64 | 65 | js/plugins.combined.js\ |
65 | 66 | js/plugins.combined.min.js\ |
| 67 | + $(PLUGINS) |
| 68 | + |
| 69 | +WIKIEDITOR_HOOKS := \ |
| 70 | + $(WIKIEDITOR_MODULES)\ |
66 | 71 | WikiEditor/WikiEditor.combined.js\ |
67 | | - WikiEditor/WikiEditor.combined.min.js\ |
| 72 | + WikiEditor/WikiEditor.combined.min.js |
| 73 | + |
| 74 | +VECTOR_HOOKS := \ |
| 75 | + $(VECTOR_MODULES)\ |
68 | 76 | Vector/Vector.combined.js\ |
69 | 77 | Vector/Vector.combined.min.js |
| 78 | + |
| 79 | +all: \ |
| 80 | + $(USABILITYINITIATIVE_HOOKS)\ |
| 81 | + $(WIKIEDITOR_HOOKS)\ |
| 82 | + UsabilityInitiative.hooks.php\ |
| 83 | + WikiEditor/WikiEditor.hooks.php\ |
| 84 | + Vector/Vector.hooks.php\ |
| 85 | + |
70 | 86 | |
71 | 87 | # JavaScript Combination |
72 | 88 | |
— | — | @@ -108,6 +124,15 @@ |
109 | 125 | jsmin: |
110 | 126 | type -P jsmin &>/dev/null || ( wget http://www.crockford.com/javascript/jsmin.c; gcc jsmin.c -o jsmin ) |
111 | 127 | |
| 128 | +# Simple incrementer of versions |
| 129 | + |
| 130 | +UsabilityInitiative.hooks.php: $(USABILITYINITIATIVE_HOOKS) |
| 131 | + for file in $?; do basefile=$${file}; sed -i "s/\(.*'src' => '$${basefile//\//\\/}', 'version' => \)\([0-9 +]*\)\(.*\)/\\1 \\2+ 1 \\3/" $@; done |
| 132 | +WikiEditor/WikiEditor.hooks.php: $(WIKIEDITOR_HOOKS) |
| 133 | + for file in $?; do basefile="$${file#WikiEditor/}"; sed -i "s/\(.*'src' => '$${basefile//\//\\/}', 'version' => \)\([0-9 +]*\)\(.*\)/\\1 \\2+ 1 \\3/" $@; done |
| 134 | +Vector/Vector.hooks.php: $(VECTOR_HOOKS) |
| 135 | + for file in $?; do basefile=$${file#Vector/}; sed -i "s/\(.*'src' => '$${basefile//\//\\/}', 'version' => \)\([0-9 +]*\)\(.*\)/\\1 \\2+ 1 \\3/" $@; done |
| 136 | + |
112 | 137 | # Actions |
113 | 138 | |
114 | 139 | distclean: clean |