mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
22 lines
763 B
Python
22 lines
763 B
Python
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
||
|
|
||
|
dependencies = []
|
||
|
targets = []
|
||
|
|
||
|
def makeQuote(filename):
|
||
|
return filename.replace(' ', '\\ ') # enjoy!
|
||
|
|
||
|
def writeMakeDependOutput(filename):
|
||
|
print "Creating makedepend file", filename
|
||
|
with open(filename, 'w') as f:
|
||
|
if len(targets) > 0:
|
||
|
f.write("%s:" % makeQuote(targets[0]))
|
||
|
for filename in dependencies:
|
||
|
f.write(' \\\n\t\t%s' % makeQuote(filename))
|
||
|
f.write('\n\n')
|
||
|
for filename in targets[1:]:
|
||
|
f.write('%s: %s\n' % (makeQuote(filename), makeQuote(targets[0])))
|
||
|
|