# MP_PBM - Gui interface to PBMPlus routines
# Copyright (C) © 1995 Mark John Paddock

# $VER: MP_PBM_smakefile 5.0 (15.5.96)

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# mpaddock@cix.compulink.co.uk
# mark@topic.demon.co.uk

# Make file for MP_PBM and SAS/C 6.55

# various defines
DS        = sD/
GS        = sG/
IF        = $(IS)iffp/
I         = .info
G         = Gui/

MPPBMDIST = PBM PBM$(I) PBM.guide PBM.guide$(I) RunMPGui MPGui.library $(G)PBM.gui smakefile lha/emptyfile $(DS)PBM.texi smakefile COPYING

# Default is to generate Source and Object lha
Everything: lha/MP_PBM50.lha

# Delete all the built files (except two above) to force a recompile
Delete:
   -delete PBM.guide $(G)PBM/\#?.(bak|info)

# MP_PBM lha distribution
lha/MP_PBM50.lha: $(MPPBMDIST) $(G)PBM
	-delete lha/MP_PBM50.lha
	lha -a -F u -x lha/MP_PBM50.lha <@<
	$(MPPBMDIST)
	<
   lha -a -F u -x lha/MP_PBM50.lha $(G)PBM/~(\#?.(bak|info))

PBM.guide: $(DS)PBM.texi
   Makeinfo --amiga-39 -o PBM.guide $(DS)PBM.texi

RunMPGui: /MPGui50/RunMPGui
	Copy /MPGui50/RunMPGui RunMPGui

MPGui.library: /MPGui50/MPGui.library
	Copy /MPGui50/MPGui.library MPGui.library
