16 lines
445 B
Python
16 lines
445 B
Python
# -*- python -*-
|
|
|
|
import os, fnmatch
|
|
Import('env')
|
|
|
|
def findFiles(pattern, subdir=''):
|
|
files = []
|
|
for file in os.listdir(os.path.join(Dir('.').srcnode().abspath, subdir)):
|
|
if fnmatch.fnmatch(file, pattern):
|
|
files.append(File(os.path.join(subdir, file), Dir('.')))
|
|
return files
|
|
|
|
for n in (env.Install('$pkgdatadir', 'README' ),
|
|
env.Install('$pkgdatadir', findFiles('*.la'))):
|
|
env.Alias('install', n)
|