Packets/80211Bundle: Read-only radiotap reimplementation
[senf.git] / senf / Packets / 80211Bundle / radiotap / SConscript
1 # -*- python -*-
2
3 Import('env')
4 import SENFSCons
5
6 env.SetDefault(
7     RADIOTAP_FILES = env.Glob("*.h") + env.Glob("*.c"),
8     RADIOTAP_URL = 'http://git.sipsolutions.net/radiotap.git',
9     )
10
11 env.PhonyTarget(
12     'update-radiotap', [],
13     [ Delete('$GITDIR'),
14       'git clone $RADIOTAP_URL $GITDIR',
15       'cp $_RADIOTAP_FILES $HERE',
16       Delete('$GITDIR') ],
17     HERE            = env.Dir('.'),
18     GITDIR          = env.Dir('radiotap.git'),
19     _RADIOTAP_FILES = [ env.Dir('radiotap.git').File(f)
20                         for f in env.Flatten(env.subst_list('$RADIOTAP_FILES')) ])