# _____     ___ ____     ___ ____
#  ____|   |    ____|   |        | |____|
# |     ___|   |____ ___|    ____| |    \    PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
#
# $Id: Rules.release 1021 2005-04-22 04:56:26Z loser $


RELEASE_COMMON_DIRS = common/ common/include/ common/include/sys 
RELEASE_COMMON_DIRS := $(RELEASE_COMMON_DIRS:%=$(PS2SDK)/%)

$(RELEASE_COMMON_DIRS):
	$(MKDIR) -p $(RELEASE_COMMON_DIRS)

release: all $(RELEASE_COMMON_DIRS)
	@for file in include/* ; do \
	   if test -f $$file ; then \
	     $(ECHO) Installing $$file to $(PS2SDK)/common/include ; \
	     cp -f $$file $(PS2SDK)/common/include ; \
	   fi \
	done; 
	@for file in include/sys/* ; do \
	   if test -f $$file ; then \
	     $(ECHO) Installing $$file to $(PS2SDK)/common/include/sys ; \
	     cp -f $$file $(PS2SDK)/common/include/sys ; \
	   fi \
	done;

release-clean:
	rm -f -r $(PS2SDK)/common

