aboutsummaryrefslogtreecommitdiff
path: root/SConscript
blob: 40a1c74cd1b78a788497fedac76f8f21c481d40d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import glob
import os
import re
Import('env prefix')

for tk in glob.glob('*/*.tk'):
    (dir, file) = os.path.split(tk)
    filename = re.sub("\.tk$","",file)
    cmd = "./tk2c.bash < " + dir + "/" + file + " > " + dir + "/" + filename + ".tk2c"
    os.popen(cmd)

for extra in glob.glob('*/*.c'):
    unauthorized = env.SharedLibrary(target = re.sub("\.c$","",os.path.basename(extra)), source = extra)
    env.Alias('install', env.Install(os.path.join(prefix, 'extra'), unauthorized))
    Default(unauthorized)

env.Alias('install', env.Install(os.path.join(prefix, 'doc/unauthorized'), glob.glob('*/*.pd')))