Skip to content

Commit 5d13a60

Browse files
author
Sam Kleinman
committed
build: changing locations and configuration for table builders
1 parent 2a896c2 commit 5d13a60

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ build/*
99
.DS_Store
1010
source/includes/hash.rst
1111
source/includes/install-curl-release*.rst
12-
source/includes/*yaml
12+
source/includes/table-*.rst

bin/makefile.tables

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
## Eventually we can write a script to autogenerate these builder
22
## rules, for the mean time, it'll look like the following:
33

4-
.PHONY: tables
4+
.PHONY: tables clean-tables
55

6-
# a phony target to build all table pages, add each built table to this dependency here:
7-
tables: source/includes/table-sql-to-agg-examples.rst source/includes/table-sql-to-agg-terms.rst
8-
# a noop until there are actual tables here
6+
# add each built table to this variable here:
7+
output-tables = source/includes/table-sql-to-agg-examples.rst source/includes/table-sql-to-agg-terms.rst
8+
tables: $(output-tables)
9+
@git update-index --assume-unchanged #
10+
@echo [build]: clensing git index of $(output-tables)
11+
12+
clean-tables:
13+
rm -rf $(output-tables)
914

1015
# each table will build from a '.yaml' table file the includes
1116
# directory, into a '.rst' file in the includes directory, using the
1217
# 'table_builder.py' script. The build rules for these files will look
1318
# like the following.
1419

15-
source/includes/table-sql-to-agg-terms.rst:source/includes/table/sql-to-agg-terms.yaml
20+
source/includes/table-sql-to-agg-terms.rst:source/includes/table-sql-to-agg-terms.yaml
1621
@$(PYTHONBIN) bin/table_builder.py $< $@
17-
@[table-builder]: \(re\)generate $@ table for inclusion in build
18-
source/includes/table-sql-to-agg-examples.rst:source/includes/table/sql-to-agg-examples.yaml
22+
@echo [table-builder]: \(re\)generate $@ table for inclusion in build
23+
source/includes/table-sql-to-agg-examples.rst:source/includes/table-sql-to-agg-examples.yaml
1924
@$(PYTHONBIN) bin/table_builder.py $< $@
20-
@[table-builder]: \(re\)generate $@ table for inclusion in build
25+
@echo [table-builder]: \(re\)generate $@ table for inclusion in build
2126

0 commit comments

Comments
 (0)