The included file will load the latest version of Wordpress in to your project.
To get started, just run:
[email protected]:example/example-project.git
cd example-project;
git checkout development;
make;
The included file will load the latest version of Wordpress in to your project.
To get started, just run:
[email protected]:example/example-project.git
cd example-project;
git checkout development;
make;
.PHONY: install | |
install: clean wordpress | |
git submodule init; | |
@echo "\n\nNOTICE: You may need to configure a MySQL database for your Wordpress installation. Just run:" | |
@echo " mysql -u root -p;" | |
@echo " CREATE DATABASE example_site; \n" | |
wordpress: latest.tar.gz | |
tar -zxvf latest.tar.gz; | |
rm -rf wordpress/wp-content; | |
mv wordpress/* ./; | |
rm -rf latest.tar.gz wordpress license.txt readme.html wp-content/plugins/akismet wp-content/plugins/hello.php; | |
latest.tar.gz: | |
curl -O http://wordpress.org/latest.tar.gz; | |
clean: | |
rm -rf wp-admin wp-includes readme.html license.txt .htaccess wp-activate.php wp-config-sample.php wp-login.php wp-trackback.php wp-blog-header.php wp-cron.php wp-mail.php wp-comments-post.php wp-links-opml.php wp-settings.php wp-load.php wp-signup.php xmlrpc.php index.php; | |
rm -rf latest.tar.gz wordpress; | |
test: | |
open http://example_site.dev/?tests | |
tidy: | |
php wp-content/themes/example_site/third-party/wp-phptidy/wp-phptidy.php replace wp-content/themes/example_site/functions.php | |
deploy: | |
git checkout master && git merge development && git checkout development && git push --all | |
help: | |
@echo "Makefile usage:" | |
@echo " make \t\t Get Wordpress application files" | |
@echo " make clean \t Delete Wordpress files" | |
@echo " make deploy \t Merge development branch into master and push all" | |
@echo " make test \t Run unit tests in web browser" | |
@echo " make tidy \t Run PHP Tidy on select project files" |