0

I would like to delete a another directory when I run make clean, but I can't figure out how to code it up in the rules.

I have tried

clean-local:
  -rm -f del.dir

but that didn't work.

I also tried

CLEANFILES = del.dir

but that also didn't work.

Any suggestions would be appreciated,

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Grammin
  • 11,808
  • 22
  • 80
  • 138
  • 1
    "but that didn't work" doesn't tell us anything useful. Can you edit your post to include error messages or any other output from `make`? – Jack Kelly Sep 15 '10 at 01:33

1 Answers1

1

clean-local should work, but the command to erase a directory is rm -rf dir, not rm -f dir.

adl
  • 15,627
  • 6
  • 51
  • 65