gnu make - Makefile command modification -
gnu make - Makefile command modification -
i modify makefile command:
-rm -f $(objs) -rm -f $(objs:.o=.mod)
the first removes filenames.o , sec removes filenames.mod. however, modify sec such get: mod_filenames.mod, i.e., add together string "mod_".
i tried: -rm -f mod_$(objs:.o=.mod), affected first file in list. i'm jet guessing here. if suggest wide site such programming explained, grateful.
gnu create manual.
there gnu create unleased book , gnu create standard library.
see 8.3 functions file names of manual, can utilize $(addprefix ...)
(there other ways) get:
-rm -f $(objs) -rm -f $(addprefix mod_,$(objs:.o=.mod))
it improve utilize $(rm)
(it's rm -f
):
-$(rm) $(objs) -$(rm) $(addprefix mod_,$(objs:.o=.mod))
makefile gnu-make
Comments
Post a Comment