Rename doc.css to doc.css.in.

As we'll need to copy it to buck-out/gen anyway, this will save some
future trouble.

Change-Id: I91cfadd15d6642a8dfaf73b6243411e9492781ca
This commit is contained in:
Yuxuan 'fishy' Wang
2014-08-29 10:19:22 -07:00
parent adf629c43a
commit de8379588d
3 changed files with 9 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ genrule(
srcs = glob([
'images/*.jpg',
'images/*.png',
]) + ['doc.css'],
]) + [':doc.css'],
out = 'html.zip',
visibility = ['PUBLIC'],
)
@@ -39,6 +39,13 @@ genrule(
out = 'licenses.txt',
)
genrule(
name = 'doc.css',
srcs = ['doc.css.in'],
cmd = 'cp $SRCS $OUT',
out = 'doc.css',
)
python_binary(
name = 'gen_licenses',
main = 'gen_licenses.py',

View File

@@ -34,7 +34,7 @@ def genasciidoc(
for attribute in attributes:
asciidoc.extend(['-a', attribute])
asciidoc.append('$SRCS')
newsrcs = ["doc.css"]
newsrcs = [":doc.css"]
for src in srcs:
fn = src
# We have two cases: regular source files and generated files.