title: Gnu make "clean" only removes .c files in OBJ/ASM variables
body: <p>I am trying to <strong>remove all</strong> .o , .i , .asm , .d files stored in variables in this form :</p>
  <pre><code>OBJS := $(SRCS:.c=.o)
  PP := $(SRCS:.c=.i)
  ASM := $(SRCS:.c=.asm)
  DEP := $(SRCS:.c=.d)
  </code></pre>
  <p>using this code :</p>
  <pre><code>SRCS = text1.c\
         text2.c
        
  
  OBJS :=$(SRCS:.c=.o)
  PP := $(SRCS:.c =.i)
  ASM := $(SRCS:.c =.asm)
  DEP := $(SRCS:.c =.d)
  
  
  .PHONY : clean
  clean :
      rm -f $(OBJS) $(PP) $(ASM) $(DEP)
  </code></pre>
  <p>but it only applies the .o to the $(OBJS) like this :</p>
  <pre><code>rm -f text1.o text2.o text1.c text2.c text1.c text2.c text1.c text2.c
  </code></pre>
  <p>I don't understand why it didn't replace *.c files with *.i or *.asm and so on .</p>
  <p>I used this to solve it :</p>
  <pre><code>.PHONY: clean
  clean:
      rm -f *.o *.i *.asm *.d
  </code></pre>
  <p>but i am still learning &quot;make&quot; so i would like to know why the first is not working .. thank u in advance.</p>