added "install" target

This commit is contained in:
Josh Holtrop 2010-12-19 00:11:38 -05:00
parent 5ebff00dbc
commit a0d66622db

View File

@ -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