Skip to content

Commit

Permalink
Move most .do files into the build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed Apr 14, 2016
1 parent 890f82b commit f7e1815
Show file tree
Hide file tree
Showing 23 changed files with 19 additions and 16 deletions.
28 changes: 14 additions & 14 deletions FILES
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ cookie.c
auto-str=x
auto-str.c
conf-bin
auto_bin.c.do
make/auto_bin.c.do
auto_bin.h
conf-man
install=x
install.c
setup.do
man.do
it.do
targets.do
default.do
default.a.do
default.o.do
default.0.do
make/setup.do
make/man.do
make/it.do
make/targets.do
make/default.do
make/default.a.do
make/default.o.do
make/default.0.do
conf-cc
conf-ld
find-systype.sh
Expand Down Expand Up @@ -181,7 +181,7 @@ open.h
open_append.c
open_read.c
open_trunc.c
uint32.h.do
make/uint32.h.do
uint32.h1
uint32.h2
tryulong32.c
Expand All @@ -202,7 +202,7 @@ scan.h
scan_ulong.c
scan_8long.c
lock=l
hasflock.h.do
make/hasflock.h.do
lock.h
lock_ex.c
tryflock.c
Expand All @@ -217,7 +217,7 @@ sig=l
sig.h
sig_catch.c
sig_pipe.c
hassgact.h.do
make/hassgact.h.do
trysgact.c
datetime.3
datetime=0
Expand All @@ -235,13 +235,13 @@ seek=l
seek.h
seek_set.c
conf-qmail
auto_qmail.c.do
make/auto_qmail.c.do
auto_qmail.h
qmail.h
qmail.c
direntry.3
direntry=0
direntry.h.do
make/direntry.h.do
direntry.h1
direntry.h2
trydrent.c
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions tools/makemake
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def runit(t, filename, **kw):

def target(name, parent=None):
debug('target(name={!r}, parent={!r})'.format(name, parent and parent.target))
if os.path.exists(name) and not os.path.exists(name+'.do'):
if os.path.exists(name) and not (os.path.exists('build/{}.do'.format(name)) or os.path.exists('{}.do'.format(name))):
debug(' SOURCES.add({!r})'.format(name))
SOURCES.add(name)
elif name in TARGETS or name in SOURCES or (parent and parent.has_parent(name)):
Expand All @@ -134,7 +134,10 @@ def target(name, parent=None):
else:
target = Target(name, parent)
base,ext = split(name)
for dofile in [ name+'.do', 'default.{}.do'.format(ext), 'default.do' ]:
for dofile in [ '{}.do'.format(name),
'build/{}.do'.format(name),
'build/default.{}.do'.format(ext),
'build/default.do' ]:
if os.path.exists(dofile):
runit(target, dofile, base=base, ext=ext, target=name)
break
Expand Down

0 comments on commit f7e1815

Please sign in to comment.