Skip to content

Commit

Permalink
Add basic Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
echernyavskiy authored and vrana committed Feb 6, 2021
1 parent 75cd1c3 commit 1e1c46a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
ROOT_DIRECTORY = $(shell dirname "$(realpath $(lastword $(MAKEFILE_LIST)))")
PHP := $(shell which php)
PORT := 8000


.DEFAULT_GOAL := default


.PHONY: default
default: compile

.PHONY: compile
compile:
$(PHP) $(ROOT_DIRECTORY)/compile.php

.PHONY: server
server:
php \
--server 127.0.0.1:$(PORT) \
--docroot $(ROOT_DIRECTORY)

.PHONY: initialize
initialize:
git \
-C $(ROOT_DIRECTORY) \
submodule \
update \
--init \
--recursive

.PHONY: clean
clean:
rm \
--recursive \
--force \
$(ROOT_DIRECTORY)/adminer.php

.PHONY: clean.all
clean.all: clean

0 comments on commit 1e1c46a

Please sign in to comment.