#
# ~ppr/src/procsets/Makefile
# Copyright 1995, 1996, Trinity College Computing Center.
# Written by David Chappell.
#
# 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.
#
# There is a problem here, namely, make can not handle
# spaces in file names.
#
# This file was last modified 19 January 1996.
#

include ../include/global.mk

all: squeeze$(DOTEXE)

install: all \
	$(HOMEDIR)/cache/procset/TrinColl-PPR-dmm-nup-3-4 \
	$(HOMEDIR)/cache/procset/AppleDict_md-71-0 \
	$(HOMEDIR)/cache/procset/TrinColl-PPR-ReEncode-1-0 \
	$(HOMEDIR)/cache/procset/TrinColl-PPR-NewMetrics-1-0 \
	$(HOMEDIR)/cache/procset/TrueDict-27-0 \
	$(HOMEDIR)/cache/procset/Adobe_Win_Driver-2-0

squeeze$(DOTEXE): squeeze.c
	$(CC) $(CFLAGS) -o squeeze$(DOTEXE) squeeze.c

$(HOMEDIR)/cache/procset/TrinColl-PPR-dmm-nup-3-4: TrinColl-PPR-dmm-nup-3-4
	./squeeze TrinColl-PPR-dmm-nup-3-4 $(HOMEDIR)/cache/procset/TrinColl-PPR-dmm-nup-3-4

# This clause if flawed due to the space in the file name.
$(HOMEDIR)/cache/procset/AppleDict_md-71-0: AppleDict_md-71-0
	cp 'AppleDict_md-71-0' '$(HOMEDIR)/cache/procset/AppleDict md-71-0'

$(HOMEDIR)/cache/procset/TrinColl-PPR-ReEncode-1-0: TrinColl-PPR-ReEncode-1-0
	./squeeze TrinColl-PPR-ReEncode-1-0 $(HOMEDIR)/cache/procset/TrinColl-PPR-ReEncode-1-0

$(HOMEDIR)/cache/procset/TrinColl-PPR-NewMetrics-1-0: TrinColl-PPR-NewMetrics-1-0
	./squeeze TrinColl-PPR-NewMetrics-1-0 $(HOMEDIR)/cache/procset/TrinColl-PPR-NewMetrics-1-0

$(HOMEDIR)/cache/procset/TrueDict-27-0: TrueDict-27-0
	cp TrueDict-27-0 $(HOMEDIR)/cache/procset/TrueDict-27-0

$(HOMEDIR)/cache/procset/Adobe_Win_Driver-2-0: Adobe_Win_Driver-2-0
	cp Adobe_Win_Driver-2-0 $(HOMEDIR)/cache/procset/Adobe_Win_Driver-2-0

clean:
	rm -f *.bak *~ squeeze$(DOTEXE)

# end of file
