diff --git a/Makefile b/Makefile index 5cb6fe9..75bdd9a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ +install_dir ?= $(HOME)/local/anaglym WINCHECK := $(shell which msys-1.0.dll >/dev/null 2>&1; if [ $$? -eq 0 ]; then echo MSYS; fi) ifeq ($(strip $(WINCHECK)),) PLATFORM := PLATFORM_LINUX @@ -134,6 +135,12 @@ ifeq ($(PLATFORM),PLATFORM_WINDOWS) cp -a $(shell which libvorbisfile-3.dll) $@ endif +.PHONY: install +install: dist + @echo "Installing to '$(install_dir)', override with 'make install_dir=path'" + -mkdir -p $(install_dir) + rsync -av dist/ $(install_dir) + clean: -rm -f *.o *.dep *~ $(TARGET) stdout.txt stderr.txt sdl_keymap.h sdl_keymap.cc $(MAKE) -C wfobj clean