Skip to content
Snippets Groups Projects
Commit 9c4201a1 authored by g0dil's avatar g0dil
Browse files

Fix 'scons clean' dependencies

parent f298e4ff
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ Priority: extra ...@@ -3,7 +3,7 @@ Priority: extra
Maintainer: Stefan Bund <senf-dev@lists.berlios.de> Maintainer: Stefan Bund <senf-dev@lists.berlios.de>
Build-Depends: debhelper (>= 5), scons, binutils-dev, libboost-dev, Build-Depends: debhelper (>= 5), scons, binutils-dev, libboost-dev,
libboost-test-dev, libboost-date-time-dev, libboost-regex-dev, libboost-test-dev, libboost-date-time-dev, libboost-regex-dev,
doxygen, dia, tidy, xsltproc, graphviz, perl-base doxygen, dia, tidy, xsltproc, graphviz, perl-base, linklint
Standards-Version: 3.7.2 Standards-Version: 3.7.2
Section: libs Section: libs
......
...@@ -52,6 +52,8 @@ build-stamp: configure-stamp ...@@ -52,6 +52,8 @@ build-stamp: configure-stamp
dh_testdir dh_testdir
# # Add here commands to compile the package. # # Add here commands to compile the package.
scons -j $(CONCURRENCY_LEVEL) default all_docs final=1 scons -j $(CONCURRENCY_LEVEL) default all_docs final=1
scons linklint
scons fixlinks
touch $@ touch $@
clean: clean:
......
...@@ -343,7 +343,9 @@ def DoxyEmitter(source, target, env): ...@@ -343,7 +343,9 @@ def DoxyEmitter(source, target, env):
out_dir = data["OUTPUT_DIRECTORY"] out_dir = data["OUTPUT_DIRECTORY"]
dir = env.Dir( os.path.join(source[0].dir.abspath, out_dir) ) dir = env.Dir( os.path.join(source[0].dir.abspath, out_dir) )
dir.sources = source dir.sources = source
if env.GetOption('clean'): targets.append(dir) if env.GetOption('clean'):
targets.append(dir)
return (targets, source)
else: else:
out_dir = '.' out_dir = '.'
......
...@@ -350,6 +350,9 @@ def Objects(env, sources, testSources = None, LIBS = [], OBJECTS = []): ...@@ -350,6 +350,9 @@ def Objects(env, sources, testSources = None, LIBS = [], OBJECTS = []):
return objects return objects
def InstallIncludeFiles(env, files): def InstallIncludeFiles(env, files):
# Hrmpf ... why do I need this in 0.97??
if env.GetOption('clean'):
return
target = env.Dir(env['INCLUDEINSTALLDIR']) target = env.Dir(env['INCLUDEINSTALLDIR'])
base = env.Dir(env['INSTALL_BASE']) base = env.Dir(env['INSTALL_BASE'])
for f in files: for f in files:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment