forked from dentarg/auth0-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·36 lines (29 loc) · 822 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
#
# auth0-blog Makefile
#
build_deb: bundle build_pages check-version-variable check-deb-variables
#
# Accepted variables to be passed
# WORKSPACE , GIT_URL , VERSION_NUMBER , GIT_BRANCH , GIT_COMMIT
#
fpm -C $(WORKSPACE) --deb-user www-data --deb-group www-data \
--prefix /opt/auth0 \
--url ' $(GIT_URL)' --version $(VERSION_NUMBER) -n auth0-blog \
-x '**/.git*' -x '*.tgz' -x '**/test/*' \
--description 'Auth0 Blog $(VERSION_NUMBER) - git commit $(GIT_BRANCH)-$(GIT_COMMIT)' \
-t deb -s dir auth0-blog
git checkout .
build_pages:
jekyll build --destination auth0-blog --trace
check-version-variable:
ifndef VERSION_NUMBER
$(error VERSION_NUMBER is undefined)
endif
check-deb-variables:
ifndef WORKSPACE
$(error WORKSPACE is undefined)
endif
bundle:
gem list
gem install bundler
bundle install