UNAME	:=	$(shell uname)
include ../templates/template.$(UNAME)

# ---------------------------------------------------------------------
# RCSID		: 	$Id: Makefile,v 1.15 2000/11/28 06:28:43 cmalek Exp $
# Project	:	xdphys
# Filename	:	Makefile
# Desc		:	Makefile for xdphys documentation
# ---------------------------------------------------------------------


FILES = \
	xdp_waitforlp \
	xdprint \
	xdprint_all \
	m2a \
	fix3and5 \
	mod_gen.gawk \
	depselect \
	repselect \
	xdsetup

ARCH_FILES = \
	xdphys \
	xdview \
	xcalibur \
	xclockbar 



#-------------------------------------------------------------------------
# Targets
#-------------------------------------------------------------------------
all: 

clean:
	$(RM) core 

binclean: 

distclean: clean binclean
	$(RM) *~ \#* 
	$(RM) TAGS

install:  install-scripts install-execs

install-scripts:
	@$(INSTALL) -d -m 0755 $(INSTALL_BINDIR)
	@echo "Installing xdphys helpful scripts:"
	@for x in $(FILES);\
		do\
			$(INSTALL) -m 0555 $$x $(INSTALL_BINDIR);\
			echo "  $$x.";\
		done
	@echo "Done."

install-execs:
	@$(INSTALL) -d -m 0755 $(INSTALL_BINDIR)
	@echo -n "Installing xdphys programs"
ifeq "$(STRIP)" "-s"
	@echo " (stripping):"
else
	@echo ":"
endif
	@(cd $(UNAME); \
		for x in $(ARCH_FILES);\
		do\
			$(INSTALL) $(STRIP) -m 0555 $$x $(INSTALL_BINDIR);\
			echo "  $$x.";\
		done)
	@echo "Done."


