BUILD_ROOT=@NEOCCA_BUILD_ROOT@ BUILDDIRS= src CLEANDIRS= src lib include BUILDDOCS= doc INSTALL_DIRS= doc # rerun configure with a different --prefix=... to change INSTALL_ROOT. # default is current directory. INSTALL_ROOT= @NEOCCA_INSTALL_ROOT@ PKG_NAME=@PKG_NAME@ LN_S=@LN_S@ INSTALL=@INSTALL@ INSTALL_DATA=@INSTALL_DATA@ GENFILES=@GENERATED_FILES@ all: build gen doc done done: @echo "#======================================" @echo "Done with our best shot at everything." @echo "#======================================" gen: (cd include; $(MAKE) gen) # If doxygen isn't found, tough cookies. # It isn't totally impossible to read our headers directly. doc: config/mkdirhier dox/man/man3/neoports config/mkdirhier dox/man/man3/neosupport @for i in $(BUILDDOCS) /dev/null ; do \ if test $$i != "/dev/null" -a -d $$i ; then \ echo "#======================================" ; \ echo "Building documentation in $$i" ; \ echo "#======================================" ; \ (cd $$i ; $(MAKE) ) ; \ fi ; \ if test $$i != "/dev/null" -a ! -d $$i ; then \ echo "* * * You need to checkout/update -d $$i"; \ exit 1 ; \ fi ; \ done build: @for i in $(BUILDDIRS) /dev/null ; do \ if test $$i != "/dev/null" -a -d $$i ; then \ (cd $$i ; $(MAKE) ) ; \ fi ; \ if test $$i != "/dev/null" -a ! -d $$i ; then \ echo "* * * You need to checkout/update -d $$i"; \ exit 1 ; \ fi ; \ done @echo "#=====================================================" @echo " All ($(BUILDDIRS)) built." @echo "#=====================================================" install: $(MAKE) INSTALL_ROOT=$(INSTALL_ROOT) -f Makefile.install install install-files: $(MAKE) INSTALL_ROOT=$(INSTALL_ROOT) -f Makefile.install install-files # Probably should clean out docs too oh well clean: @for i in $(CLEANDIRS) /dev/null ; do \ if test $$i != "/dev/null" -a -d $$i ; then \ (cd $$i ; $(MAKE) TARGET=clean clean) ; \ fi ; \ if test $$i != "/dev/null" -a ! -d $$i ; then \ echo "* * * You need to checkout/update -d $$i"; \ exit 1 ; \ fi ; \ done check: (cd src; $(MAKE) check) distclean: clean (cd include; $(MAKE) TARGET=clean distclean) (cd src; $(MAKE) TARGET=clean distclean) $(RM) -r config.status config.log $(GENFILES) dox bin share # we don't suggest you edit our configure, but if you must # and you have autoconf-2.13... configure: configure.in acsite.m4 -/bin/rm configure autoconf-2.13 configure.in | sed -e 's;# $$Header;# Source;' > configure chmod a+x ./configure test-configure: configure ./configure .PHONY: clean distclean doc all done $(INSTALL_ROOT) install