#
# GNUmakefile is a wrapper for the real Makefile that includes
# rules for installing the source.  GNU make will use GNUmakefile
# preferentially over Makefile if both exist.
#

include Makefile

SRCDIR = $(ROOT)/usr/src/tools/ncshell
INSTALLDIR = $(ROOT)/usr/bin/x86
ifneq ($(CYGWIN_BUILD),)
RESULTS = ncshell.exe
else
RESULTS = ncshell
endif

.PHONY: install_src
install_src:
	-mkdir -p $(SRCDIR)
	$(INSTALL) $(ASFILES) $(CFILES) $(HEADERS) $(SRCDIR)
	$(INSTALL) Makefile $(SRCDIR)

install: $(TARGETS) install_src
	$(INSTALL) $(RESULTS) $(INSTALLDIR)
