# Makefile for nbinclude on Linux
# Jim Bevier -  JB Systems

all: install

install:
	@if [ -d /system ]; then \
		echo "/system already exists"; \
	else \
		mkdir /system; \
	fi
	@if [ -d /system/nbinclude ]; then \
		echo "/system/nbinclude already exists"; \
	else \
		mkdir /system/nbinclude; \
	fi
	cp *.h /system/nbinclude
	@if [ -d /system/nbinclude/sys ]; then \
		echo "/system/nbinclude/sys already exists"; \
	else \
		cd /system/nbinclude; \
		ln -s . sys; \
	fi

clean:
	rm -fr /system/nbinclude
