-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (33 loc) · 988 Bytes
/
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
36
37
38
39
40
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
BUILDDIR = ./build
VENDORDIR = ./vendor
.PHONY: help clean build-phar
build: clean composer build-phar clean
build-phar:
@echo "Building Phar archive."
php create-phar.php
@echo "Moving Phar archive to build directory."
mv converter.phar build
@echo
@echo "Finished building Phar archive."
@echo
composer:
@echo "Installing required packages via Composer."
composer install
@echo
@echo "Finished installing required packages."
@echo
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " build-phar to rebuild the Phar file"
@echo " clean to clean the build directory, removing an old artifacts and previous Phar files"
@echo " help to display this help message"
clean:
@echo "Cleaning out old build artifacts."
rm -rf $(BUILDDIR)/*
rm -rf $(VENDORDIR)/*
@echo
@echo "Finished cleaning out old build artifacts."
@echo