Skip to content

Commit

Permalink
Makefile: rules to update indices and start server
Browse files Browse the repository at this point in the history
  • Loading branch information
carandraug committed Feb 8, 2018
1 parent f6b7445 commit 7b25850
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Makefile
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)

0 comments on commit 7b25850

Please sign in to comment.