$OpenBSD: patch-ipl_Makefile,v 1.1 2001/07/03 13:13:13 espie Exp $
--- ipl/Makefile.orig	Sun Jul  1 13:14:58 2001
+++ ipl/Makefile	Sun Jul  1 13:16:46 2001
@@ -1,13 +1,17 @@
 #  Makefile for the Icon Program Library
+include ../Makedefs
 
 
 #  Make a library distribution (portable ucode and include files).
 
 Ilib:	../bin/libcfunc.so
 ../bin/libcfunc.so:  ../bin/icont
-	cp incl/*.icn gincl/*.icn cfuncs/icall.h ../lib
+	cp incl/*.icn cfuncs/icall.h ../lib
 	cd procs;  LPATH= ../../bin/icont -usc *.icn; mv *.u? ../../lib
-	cd gprocs; LPATH= ../../bin/icont -usc *.icn; mv *.u? ../../lib
+	if [ "x$(XL)" != "x" ]; then \
+	    cp incl/*.icn gincl/*.icn cfuncs/icall.h ../lib; \
+	    cd gprocs; LPATH= ../../bin/icont -usc *.icn; mv *.u?  ../../lib; \
+	fi
 	cd cfuncs; LPATH= $(MAKE) ICONT=../../bin/icont
 	mv cfuncs/*.u? ../lib
 	mv cfuncs/libcfunc.so ../bin
