mirror of
https://github.com/freedoom/freedoom.git
synced 2025-08-31 20:16:55 -04:00
make: use $(RM) for removing files
This is one of the built-in variables for Make and can increase portability on different operating systems (eg, on Windows, the built-in $(RM) may be defined as "del" instead of "rm -f").
This commit is contained in:
parent
fe7d6f864a
commit
eca25952ad
8 changed files with 32 additions and 29 deletions
|
@ -157,12 +157,13 @@ fdmtitle.png: ../titlepic/freedm_titlepic.png
|
|||
cp $@ ../
|
||||
|
||||
clean:
|
||||
rm -f $(TEXTGEN_GRAPHICS) helpbg.png help.png \
|
||||
$(RM) $(TEXTGEN_GRAPHICS) helpbg.png help.png \
|
||||
graphics.stamp *.pyc credtext.png \
|
||||
credtext.png credit.png dmwilv*.png wikilrs.png \
|
||||
wivctms.png wikilrs_horiz.png ../credit.png ../help.png \
|
||||
../wikilrs.png ../wivctms.png \
|
||||
fd1title.png fd2title.png fdmtitle.png \
|
||||
../fd1title.png ../fd2title.png ../fdmtitle.png
|
||||
for graphic in $(TEXTGEN_GRAPHICS); do rm -f ../$$graphic; done
|
||||
rm -fr __pycache__
|
||||
for graphic in $(TEXTGEN_GRAPHICS); do $(RM) ../$$graphic; done
|
||||
$(RM) __pycache__/*
|
||||
-rmdir __pycache__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue