-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
35 lines (26 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: deploy clean build
OUTPUT_DIR = public_html
STATIC_REPO = https://github.com/vilniusphp/vilniusphp.github.io.git
PHR = vendor/pawka/phrozn/bin/phrozn.php
build: $(OUTPUT_DIR) vendor
mkdir -p $(OUTPUT_DIR) && $(PHR) up . $(OUTPUT_DIR)
composer.phar:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --version=1.10.19
php -r "unlink('composer-setup.php');"
touch composer.phar
vendor: composer.phar
./composer.phar install --no-interaction
clean:
rm -f composer.phar
rm -rf vendor
rm -rf $(OUTPUT_DIR)/*
$(OUTPUT_DIR):
git clone $(STATIC_REPO) $(OUTPUT_DIR)
deploy: $(OUTPUT_DIR) build
bin/deploy.sh $(OUTPUT_DIR)
lessc-exists: ; @which lessc > /dev/null
lessc-check: lessc-exists
less: lessc-check
lessc -x .phrozn/less/vilniusphp.less .phrozn/styles/vilniusphp.css