[Omake] vmount bug?

Dmitry Bely dmitry.bely at gmail.com
Mon Oct 20 07:32:17 PDT 2008


Consider the following test project:

[OMakeroot]
.SUBDIRS: .

[OMakefile]
version(name) =
  if $(not $(file-exists $(name)))
    mkdir $(name)
  vmount(-l, src, $(name))
  .SUBDIRS: $(name)
  .PHONY: clean
  clean:
    rm -rf $(name)

section
  DEBUG_VERSION = true
  version(debug)
section
  DEBUG_VERSION = false
  version(release)

[src\OMakefile]
TEMP_DIR = e:\

testfile:
  echo $(if $(DEBUG_VERSION),debug,release) > $@

$(TEMP_DIR)\testfile: testfile
  cp -v $< $@

.PHONY: install
if $(not $(DEBUG_VERSION))
  install: $(TEMP_DIR)\testfile

.DEFAULT: install

I would expect this to create e:\testfile containing "release". But
this is not the case:

C:\Work\omake-test>omake
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.02 sec)
Copying debug\testfile to e:\testfile
*** omake: done (0.03 sec, 0/0 scans, 2/3 rules, 4/29 digests)

C:\Work\omake-test>type testfile
debug

Any comments?

- Dmitry Bely


More information about the Omake mailing list