# $Id: Makefile.cpp,v 1.10 1992/06/24 23:28:19 waite Exp $
# LIGA Postfix example

SHELL	= /bin/sh

# Location of the master cache
DESTDIR = ../../..

SPECS	= Expr.lido Integer.gla Opident.lido Pcode.ptg postfix.specs
EXTRAS	= derive input result

TIDY	= ERRS a.out core *.o *.a ELI
CLEAN	= $(TIDY) *.exe

all:	ELI $(SPECS) $(EXTRAS)
	if test '$(DESTDIR)' = ''; 	then (DUMPCORE=yes ../../../bin/eli -c ELI <derive); 	else (DUMPCORE=yes $(DESTDIR)/bin/eli -c ELI <derive); 	fi

install:
	@for f in $(SPECS) $(EXTRAS) Makefile; do 		echo install -c -m 644 $$f $(DESTDIR)/Tool/examples/liga-postfix ; 		rm -f $(DESTDIR)/Tool/examples/liga-postfix/$$f; 		cp $$f $(DESTDIR)/Tool/examples/liga-postfix ; 		chmod 644 $(DESTDIR)/Tool/examples/liga-postfix/$$f; 		done

executable:
	rm -rf $(CLEAN) Makefile.cpp

tidy:
	rm -rf $(TIDY)

clean:
	rm -rf $(CLEAN)

ELI:
	if test '$(DESTDIR)' = ''; 	then ../../../bin/eli -c ../../.. -n ELI -q; 	else $(DESTDIR)/bin/eli -c $(DESTDIR) -n ELI -q; 	fi
