forked from Kadantte/mikazuki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
38 lines (32 loc) · 904 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
npm=npm
run=run
run_npm=${npm} ${run}
build=build
dev=serve
lint=lint
install=install
.PHONY: build lint install
help:
@echo "usage: make [target]"
@echo ""
@echo "targets:"
@echo " dev - Opens the development environment"
@echo " build - Runs the build process"
@echo " lint - Runs the linter (${lint})"
@echo " install - Runs the npm install process (${npm} ${install})"
@echo ""
@echo "This makefile only exists for Windows users that use a linux subsystem."
@echo "This makefile starts a powershell command corresponding to the needed target."
@echo ""
dev:
@echo "Starting development environment..."
powershell.exe ${run_npm} ${dev}
build:
@echo "Starting build process..."
powershell.exe ${run_npm} ${build}
lint:
@echo "Starting lint process..."
powershell.exe ${run_npm} ${lint}
install:
@echo "Starting install process..."
powershell.exe ${npm} ${install}