#buildfile for /xV/libc/*/vax
#
#

DIRLISTS = header.list
OBJECTS=
SOURCES=

# This defines the HEADERS macro
#include header.list

#include ../../vax/buildtemplate
#include dependencies

all:

.PRECIOUS: install

# Only install the files which have changed since the last "make install"
install: $(HEADERS)
	$(NETINSTALL) "$?" $(VSYS)/include/$(MACHINE) 
	touch install

#Install everything
install-all:
	rm -f install
	build install

# Create a list of header file names
header.list: . $(MI)
	echo "HEADERS = \\" > tmp2
	ls *.h > tmp1
	ls $(MI)/*.h >> tmp1
	<tmp1 awk -f ../../unique.awk | sed -e 's@h$$@h\\@' >>tmp2
	<tmp2 sed -e '$$s@\\@@' > header.list
	rm tmp2 tmp1
