aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 12 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index f0eea16..e3cb547 100644
--- a/Makefile
+++ b/Makefile
@@ -13,22 +13,19 @@ ruby:
.PHONY: deps
deps: ruby
bundle install
-
-.PHONY: npm
-npm:
npm install
-jekyll := bundle exec jekyll
+.PHONY: browserify
+browserify: assets/js/bundle.js
-.PHONY: build
-build:
- $(jekyll) build
+assets/js/bundle.js: package-lock.json
+ npm exec -- browserify --require ip-address --outfile '$(call escape,$@)'
.PHONY: maintenance
-maintenance: ruby npm
+maintenance: ruby
bundle update
npm update
- @$(MAKE) bundle
+ @$(MAKE) browserify
@git_status="$$( git status --porcelain=v1 )" && \
if [ -z "$$git_status" ]; then \
@@ -45,6 +42,12 @@ maintenance: ruby npm
exit 1; \
fi
+jekyll := bundle exec jekyll
+
+.PHONY: build
+build:
+ $(jekyll) build
+
.PHONY: serve
serve:
ifeq ($(LIVE_RELOAD),1)
@@ -63,12 +66,6 @@ wget:
view:
xdg-open '$(call escape,$(URL))' &> /dev/null
-.PHONY: bundle
-bundle: assets/js/bundle.js
-
-assets/js/bundle.js: package-lock.json
- npm exec -- browserify --require ip-address --outfile '$(call escape,$@)'
-
REMOTE_USER ?= who
REMOTE_HOST ?= where
REMOTE_PORT ?= 22