/* Imakefile for pbmplus tools.
 *
 * Copyright (C) 1991 by Rainer Klute.
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation for any purpose and without fee is hereby granted, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation.  This software is provided "as is" without express or
 * implied warranty.
 */

#include <Pbmplus.tmpl>

#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

#if BuildLibTiff
SUBDIRS = libtiff pbm pgm ppm pnm
#else
SUBDIRS = pbm pgm ppm pnm
#endif

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

World::
	@echo ""
	@echo "Building PBMPLUS"
	@echo ""
	@date
	@echo ""
	$(MAKE) $(MFLAGS) Makefiles
	$(MAKE) $(MFLAGS) clean
	$(MAKE) $(MFLAGS) includes
	$(MAKE) $(MFLAGS) depend
	$(MAKE) $(MFLAGS)
	@echo ""
	@date
	@echo ""
	@echo "Full build of PBMPLUS complete."
	@echo ""

Everything::
	@echo ""
	@echo "Rebuilding PBMPLUS"
	@echo ""
	@date
	@echo ""
	$(MAKE) $(MFLAGS) Makefiles
	$(MAKE) $(MFLAGS) includes
	$(MAKE) $(MFLAGS) depend
	$(MAKE) $(MFLAGS)
	@echo ""
	@date
	@echo ""
	@echo "Rebuild of PBMPLUS complete."
	@echo ""

realclean: clean
	@echo ""
	@echo "Removing Makefiles"
	@echo ""
	rm */Makefile Makefile
	@echo ""

#if InstallIncludes
InstallMultipleFlags(pbmplus.h,$(PBMPLUSDIR)$(PBMPLUSINCDIR),$(INSTINCFLAGS))
#endif
