Fix D examples clean
Was not working if run out of source without previously running D examples
This commit is contained in:
parent
063aa9e3c5
commit
2d340efe0d
1 changed files with 4 additions and 1 deletions
|
|
@ -47,4 +47,7 @@ build:
|
||||||
$(MAKE) -C $(VERSION_DIR) -f $(EXAMPLES_TOP)/Makefile SRCDIR='../$(SRCDIR)' DSRCS='../$(SRCDIR)$(VERSION_DIR)runme.d $(DSRCS)' DFLAGS='$(DFLAGS)' d_compile
|
$(MAKE) -C $(VERSION_DIR) -f $(EXAMPLES_TOP)/Makefile SRCDIR='../$(SRCDIR)' DSRCS='../$(SRCDIR)$(VERSION_DIR)runme.d $(DSRCS)' DFLAGS='$(DFLAGS)' d_compile
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -C $(VERSION_DIR) -f $(EXAMPLES_TOP)/Makefile SRCDIR='../$(SRCDIR)' d_clean
|
if [ -d $(VERSION_DIR) ]; then \
|
||||||
|
$(MAKE) -C $(VERSION_DIR) -f $(EXAMPLES_TOP)/Makefile SRCDIR='../$(SRCDIR)' d_clean; \
|
||||||
|
fi
|
||||||
|
test -f $(VERSION_DIR)/runme.d || rm -rf $(VERSION_DIR) # Only delete dir if out of source
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue