File: SConstruct

package info (click to toggle)
globs 0.2.0~svn50-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,256 kB
  • sloc: ansic: 2,236; python: 1,727; makefile: 93; sh: 2
file content (18 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os

# Install directories
root = ARGUMENTS.get('root', '/')
prefix = ARGUMENTS.get('prefix', 'usr/local')
if root != '' and prefix != '': # not defaults
	if prefix[0] == '/':
		prefix = prefix[1:]

install_dir = os.path.join(root, prefix, 'lib/globs/benchmarks')
locale_dir = os.path.join(root, prefix, 'share/locale')

# run sub scripts
Export('install_dir', 'locale_dir')
dirs = ('src/benchmarks', 'po')

for x in dirs:
    SConscript(os.path.join(x, 'SConstruct'))