Skip to content

Commit 2f4198d

Browse files
committed
Add top level clean step
1 parent dbf57b1 commit 2f4198d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templates/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ INDEX_PATTERN_DIRS = openshift,collectd_metrics
66

77
all: templates index_pattern
88

9+
# Clean all index templates and index patterns generated during 'make'
10+
clean:
11+
for dir in {$(INDEX_PATTERN_DIRS)}; do \
12+
cd $$dir ; \
13+
make clean; \
14+
cd .. ; \
15+
done
16+
rm *.index-pattern.json
17+
918
templates:
1019
for dir in {$(INDEX_PATTERN_DIRS)}; do \
1120
cd $$dir ; \

0 commit comments

Comments
 (0)