Changeset 189 for trunk


Ignore:
Timestamp:
04/24/10 00:49:10 (15 years ago)
Author:
tim
Message:

additional work on new build system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r187 r189  
    22cflags = '-std=gnu99 -pedantic -Wall -ggdb'
    33
    4 if True:
     4if False:
    55    libiconv_path='/usr/local/src/libiconv-1.13-mingw32-dev'
    66    env = Environment(CC='i586-mingw32msvc-cc',
     
    2929libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread'])
    3030
     31
    3132# Executables
    3233reglookup = env.Program('src/reglookup.c')
    3334reglookup_recover = env.Program('src/reglookup-recover.c')
     35
    3436
    3537# Documentation
     
    3941                      + man_fixup + '| gzip -9 > $TARGET',
    4042                      suffix = '.gz',
    41                       src_suffix = '.docbook',
    42                       prefix='man/man1/') # XXX: only works for .1.docbook files...
     43                      src_suffix = '.docbook')
    4344env['BUILDERS']['ManPage'] = man_builder
    4445
     
    4647man_reglookup_recover = env.ManPage('doc/reglookup-recover.1.docbook')
    4748man_reglookup_timeline = env.ManPage('doc/reglookup-timeline.1.docbook')
     49
     50
     51# Installation
     52prefix='/usr/local/'
     53
     54# XXX: need to install reglookup-timeline
     55env.Install(prefix+'bin', [reglookup, reglookup_recover, 'bin/reglookup-timeline'])
     56env.Install(prefix+'lib', [libregfi, libregfi_static])
     57env.Install(prefix+'man/man1', [man_reglookup, man_reglookup_recover,
     58                                man_reglookup_timeline])
     59
    4860
    4961# User Friendly Targets
     
    5365env.Alias('bin', [reglookup_recover, reglookup])
    5466env.Alias('doc', [man_reglookup,man_reglookup_recover,man_reglookup_timeline])
     67env.Alias('install', [prefix+'bin', prefix+'lib', prefix+'man'])
    5568
    5669Default('bin', libregfi)
Note: See TracChangeset for help on using the changeset viewer.