NO_COLOR = \x1b[0m COMPILE_COLOR = \x1b[32;01m LINK_COLOR = \x1b[31;01m all: @echo -e '$(LINK_COLOR)* Building LGI[$@]$(NO_COLOR)' @$(MAKE) -C src/ -j2 $@ clean: @echo -e '$(LINK_COLOR)* Cleaning [$@]$(NO_COLOR)' @$(MAKE) -C src/ $@ install-x86: all @echo -e '$(LINK_COLOR)* Install x86$(NO_COLOR)' mkdir -p /usr/include/lgi-1.0 cp include/lgi-1.0/*.hpp /usr/include/lgi-1.0/ cp src/*.so /usr/lib/ cp lgi-1.0-i386.pc /usr/lib/i386-linux-gnu/pkgconfig/lgi-1.0.pc install-amd64: all @echo -e '$(LINK_COLOR)* Install amd64$(NO_COLOR)' mkdir -p /usr/include/lgi-1.0 cp include/lgi-1.0/*.hpp /usr/include/lgi-1.0/ cp src/*.so /usr/lib/ cp lgi-1.0-amd64.pc /usr/lib/x86_64-linux-gnu/pkgconfig/lgi-1.0.pc .PHONY: all clean install-x86 install-amd64