-
Process multiple files in a directory by Makefile…
Longgang Process multiple files in a directory by Makefile. SOURCES := $(wildcard *_conversion.txt) TARGETS := $(patsubst %_conversion.txt, %_uniq.txt, $(SOURCES)) .PHONY: all all: $(TARGETS) %_uniq.txt: %_conversion.txt > command $< > $@
-
Defining Macros on the Command Line Macros can…
Chaville Defining Macros on the Command Line Macros can be defined on the Make command line. For example: make CFLAGS=–ms would start up Make and define the macro CFLAGS with the value “–ms”. Macros defined on the command line take precedence over macros of the same name defined in the makefile. If a command-line macro contains…