Skip to content

Commit 5560239

Browse files
committed
update makefile
1 parent fcc2650 commit 5560239

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Makefile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
# Put all 'bin' dirs beneath node_modules into $PATH so that we're using
2-
# the locally installed AssetGraph:
3-
# Ugly 'subst' hack: Check the Make Manual section 8.1 - Function Call Syntax
4-
NPM_BINS := $(subst bin node,bin:node,$(shell if test -d node_modules; then find node_modules/ -name bin -type d; fi))
5-
ifneq ($(NPM_BINS),)
6-
PATH := ${NPM_BINS}:${PATH}
7-
endif
8-
91
deps := $(shell find public/ -type f -name "*.*")
102

113
public-min: public/index.html $(deps)
12-
buildProduction \
4+
node_modules/assetgraph-builder/bin/buildProduction \
135
--root public \
146
--outroot public-min \
157
$<
168

179
PHONY: clean
1810

1911
clean:
20-
rm -rf public-min
12+
rm -rf public-min

0 commit comments

Comments
 (0)