-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
32 lines (25 loc) · 801 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
TOP := $(shell pwd)
PROJECT = auth-cas
SOURCE = $(TOP)/$(PROJECT)
BUILDDIR = $(TOP)/build
PHAR = $(PROJECT).phar
all: $(BUILDDIR)/$(PHAR)
builddir:
mkdir -p $(BUILDDIR)
dependencies: $(BUILDDIR)/osticket-plugin-devtools
deploy-docker: $(BUILDDIR)/$(PHAR)
docker cp $(BUILDDIR)/$(PHAR) \
$$(docker-compose ps -q osticket):/data/upload/include/plugins/auth-cas.phar
$(BUILDDIR)/osticket-plugin-devtools: builddir
@if [ ! -d $@ ]; then \
echo "osticket-plugin-devtools dep missing, fetching..."; \
git clone --depth=1 \
https://github.com/kevinoconnor7/osticket-plugin-devtools.git $@; \
fi
$(BUILDDIR)/$(PHAR): dependencies
cd $(BUILDDIR)/osticket-plugin-devtools \
&& php -dphar.readonly=0 manage.php \
plugin build $(SOURCE) \
&& mv $(PHAR) $@ \
clean:
rm -rf $(BUILDDIR)