Extra cleans

3 views
Skip to first unread message

Ramana

unread,
Apr 7, 2010, 1:06:22 AM4/7/10
to latex-makefile-discuss
Is there a good way to add extra files to the clean target?
My current solution is to define a new phony target that depends on
clean and put a call to rm -f extrafiles in that.
But what if I want to call my phony target "clean" too, but don't want
to figure out what the default clean automagically removes?

Chris Monson

unread,
Apr 7, 2010, 6:54:04 AM4/7/10
to latex-makef...@googlegroups.com

Like this:

clean: extracleans

.PHONY: extracleans
  rm -rf my_additional_files

That should do it.

- From my Nexus One: watch out for spell bumps



--
To unsubscribe, reply using "remove me" as the subject.

Reply all
Reply to author
Forward
0 new messages