Difference between revisions of "Makefile"
Jump to navigation
Jump to search
(Created page with "See also make. ==Boilerplate Makefile== <syntaxhighlight lang=make> BUILD=build MAIN_PRODUCTS = $(BUILD)/product1.dst $(BUILD)/product2.dst default: $(MAIN_PRODUCTS) $...") |
(No difference)
|
Latest revision as of 06:16, 14 May 2014
See also make.
Boilerplate Makefile
BUILD=build
MAIN_PRODUCTS = $(BUILD)/product1.dst $(BUILD)/product2.dst
default: $(MAIN_PRODUCTS)
$(BUILD):
mkdir -p build
clean:
rm -rvf $(BUILD)
$(BUILD)/product1.dst: source1.src | $(BUILD)
foofilterprogram <$^ >$@
$(BUILD)/product2.dst: source2.src | $(BUILD)
baroutputprogram -o $@ $^