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

View File

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