Skip to content

Commit

Permalink
Makefile: the target for all is DISTFILES
Browse files Browse the repository at this point in the history
  • Loading branch information
carandraug committed May 21, 2018
1 parent b1b325c commit 7159b3c
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,16 @@ TAR ?= tar
XXD ?= xxd
ZIP ?= zip

## Default target (first declared target) must be the same as all.
all: index.html help.html

help:
@echo "Targets:"
@echo " serve serve site at http://localhost:8000"
@echo " dist create distribution tar file"
@echo " dist-zip create distribution zip file"

distdir := $(PACKAGE)-$(VERSION)

DIST_ARCHIVES := $(distdir).tar.gz


npm_css_dependencies = \
npm_css_dependencies := \
node_modules/bootstrap/dist/css/bootstrap.min.css

## The order of this dependencies matters because it's the order that
## will be used when creating the index.html and help.html files.
npm_js_dependencies = \
npm_js_dependencies := \
node_modules/jquery/dist/jquery.min.js \
node_modules/popper.js/dist/umd/popper.min.js \
node_modules/bootstrap/dist/js/bootstrap.min.js \
Expand Down Expand Up @@ -72,6 +62,17 @@ DISTFILES = \
$(npm_js_dependencies)


## Default target (first declared target) must be the same as all.
## And for the case of SPEKcheck, this is just DISTFILES.
all: $(DISTFILES)

help:
@echo "Targets:"
@echo " serve serve site at http://localhost:8000"
@echo " dist create distribution tar file"
@echo " dist-zip create distribution zip file"


images/visible-spectrum.png: src/create-spectrum.py
$(PYTHON) $^ $@

Expand Down

0 comments on commit 7159b3c

Please sign in to comment.