#
# OSKit_support manpages
#

# scan the L4 global configuration file
ifeq (${L4_DIR},)
  L4DIR = ../../../..
else
  L4DIR = ${L4_DIR}
endif
include $(L4DIR)/Makeconf

# scan the local configuration file if it exists
ifneq (${L4INSTALLDIR},)
  L4_INSTALL_DIR = ${L4INSTALLDIR}
endif

.SUFFIXES: .sgml .html .man

PAGES = init_OSKit_malloc.man OSKit_support.man

man all: $(PAGES)

html: $(SYSCALLS:.man=.html) $(IPC:.man=.html)

.sgml.man:    
	sdc -Oman -o$*.man $*.sgml

.sgml.html:    
	sdc -Ohtml -o$*.html $*.sgml

clean:
	rm -f *.man 

cleanall:	clean
	rm -f *~

install:        man
	@echo "Installing Manuals..."
	$(INSTALL) -d $(L4_INSTALL_DIR)/man/man2
	$(INSTALL) $(PAGES) $(L4_INSTALL_DIR)/man/man2
