Changeset 2558:31f1ca134823
- Timestamp:
- 11/15/13 16:39:24 (12 years ago)
- Branch:
- 2.6
- Children:
- 2559:2901695f9a58, 2560:4ce25b2f2f5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r2539 r2558 1 .PHONY: config-stamp 2 1 3 SHELL=/bin/sh 2 3 4 DIST=_dist 4 5 DC=$(DIST)/dotclear … … 7 8 @echo "make config or make dist" 8 9 9 config: 10 config: clean config-stamp 10 11 mkdir -p ./$(DC) 11 12 12 13 ## Copy needed folders and files 13 cp -pRf ./admin ./inc ./ themes ./index.php ./CHANGELOG ./CREDITS ./LICENSE ./README.md ./CONTRIBUTING.md ./$(DC)/14 cp -pRf ./admin ./inc ./index.php ./CHANGELOG ./CREDITS ./LICENSE ./README.md ./CONTRIBUTING.md ./$(DC)/ 14 15 15 16 ## Locales directory … … 17 18 cp -pRf ./locales/README ./locales/en ./locales/fr ./$(DC)/locales/ 18 19 20 ## Remove tests directories and test stuff 21 rm -fr ./$(DC)/inc/libs/clearbricks/tests ./$(DC)/inc/libs/clearbricks/composer.* \ 22 ./$(DC)/inc/libs/clearbricks/.atoum.* ./$(DC)/inc/libs/clearbricks/vendor \ 23 ./$(DC)/inc/libs/clearbricks/bin ./$(DC)/inc/libs/clearbricks/_dist 24 19 25 ## Create cache, db, plugins and public folders 20 mkdir ./$(DC)/cache ./$(DC)/db ./$(DC)/plugins ./$(DC)/public 21 cp inc/.htaccess ./$(DC)/cache/ 22 cp inc/.htaccess ./$(DC)/db/ 23 cp inc/.htaccess ./$(DC)/plugins/ 24 25 ## Remove .svn folders 26 find ./$(DIST)/ -type d -name '.svn' | xargs rm -rf 27 28 ## Remove .hg* files and folders 29 find ./$(DIST)/ -type d -name '.hg*' | xargs rm -rf 30 find ./$(DIST)/ -type f -name '.hg*' | xargs rm -rf 26 mkdir ./$(DC)/cache ./$(DC)/db ./$(DC)/plugins ./$(DC)/public ./$(DC)/themes 27 cp -p inc/.htaccess ./$(DC)/cache/ 28 cp -p inc/.htaccess ./$(DC)/db/ 29 cp -p inc/.htaccess ./$(DC)/plugins/ 31 30 32 31 ## Remove config file if any 33 32 rm -f ./$(DC)/inc/config.php 33 34 ## Copy built-in themes 35 cp -pRf \ 36 ./themes/default \ 37 ./themes/blueSilence \ 38 ./themes/customCSS \ 39 ./themes/ductile \ 40 ./$(DC)/themes/ 34 41 35 42 ## Copy built-in plugins … … 54 61 ./$(DC)/plugins/ 55 62 56 ## Remove .svn folders57 find ./$(DIST)/ -type d -name '.svn' -print0 | xargs -0 rm -rf58 59 ## Remove .hg* files and folders60 find ./$(DIST)/ -type d -name '.hg*' | xargs rm -rf61 find ./$(DIST)/ -type f -name '.hg*' | xargs rm -rf62 63 63 ## "Compile" .po files 64 64 ./build-tools/make-l10n.php ./$(DC)/ … … 75 75 ## Debug off 76 76 perl -pi -e "s|^//\*== DC_DEBUG|/*== DC_DEBUG|sgi;" $(DC)/inc/prepend.php $(DC)/inc/prepend.php 77 78 ## Remove scm files and folders from DC and CB 79 find ./$(DIST)/ -type d -name '.svn' | xargs -r rm -rf 80 find ./$(DIST)/ -type d -name '.hg' | xargs -r rm -rf 81 find ./$(DIST)/ -type d -name '.git' | xargs -r rm -rf 82 find ./$(DIST)/ -type f -name '.*ignore' | xargs -r rm -rf 77 83 78 84 ## Create digest … … 117 123 118 124 clean: 119 [ -f config-stamp ] 120 rm -rf $(DIST) 121 rm -f config-stamp build-stamp configure-stamp 125 rm -rf $(DIST) config-stamp 122 126 123 127
Note: See TracChangeset
for help on using the changeset viewer.