-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: rules to update indices and start server
- Loading branch information
1 parent
f6b7445
commit 7b25850
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## Copyright (C) 2018 David Pinto <david.pinto@bioch.ox.ac.uk> | ||
## | ||
## Copying and distribution of this file, with or without modification, | ||
## are permitted in any medium without royalty provided the copyright | ||
## notice and this notice are preserved. This file is offered as-is, | ||
## without any warranty. | ||
|
||
PYTHON ?= python | ||
PORT ?= 8000 | ||
|
||
help: | ||
@echo "Targets:" | ||
@echo " serve [PORT=8000] serve site at http://localhost:8000" | ||
@echo " update-index update the data index files" | ||
|
||
|
||
DTYPES = \ | ||
dyes \ | ||
excitation \ | ||
filters | ||
|
||
DATA_INDEX_FILES = \ | ||
$(foreach dtype, $(DTYPES), \ | ||
data/$(dtype)/index.html) | ||
|
||
update-index: $(DATA_INDEX_FILES) | ||
src/update-index-files.sh | ||
|
||
serve: | ||
$(PYTHON) -m SimpleHTTPServer $(PORT) |