# 
# Makefile to produce ql files from the pl files
#	- made for Sicstus, may work on others.
#

PROLOG =sicstus


SOURCES= \
	appendD_3.pl\
	append_3.pl\
	append_n_2.pl\
	atom_append_3.pl\
	cond_1.pl\
	delete_3.pl\
	delete_all_3.pl\
	elt_3.pl\
	getfiles_2.pl\
	head_all_3.pl\
	inAnotB_3.pl\
	inboth_3.pl\
	ineither_3.pl\
	insert_3.pl\
	intersect_3.pl\
	is_real_list_1.pl\
	islist_1.pl\
	lastD_2.pl\
	last_2.pl\
	map_3.pl\
	maplist_3.pl\
	max_3.pl\
	memberD_2.pl\
	member_2.pl\
	member_rest_3.pl\
	membernvar_2.pl\
	min_3.pl\
	minus_3.pl\
	no_dupls_1.pl\
	non_null_list_1.pl\
	norm_diff_2.pl\
	not_1.pl\
	ordered_1.pl\
	permute_2.pl\
	readline_1.pl\
	readword_1.pl\
	remove_dupl_2.pl\
	reverse_2.pl\
	setof2_3.pl\
	sflr_2.pl\
	string_length_2.pl\
	stringl_length_2.pl\
	sublist_4.pl\
	subset_2.pl\
	subst_4.pl\
	substitute_4.pl\
	substnvar_4.pl\
	union_3.pl\
	user_yes_no_1.pl



COMPILED =\
	appendD_3.ql\
	append_3.ql\
	append_n_2.ql\
	atom_append_3.ql\
	cond_1.ql\
	delete_3.ql\
	delete_all_3.ql\
	elt_3.ql\
	getfiles_2.ql\
	head_all_3.ql\
	inAnotB_3.ql\
	inboth_3.ql\
	ineither_3.ql\
	insert_3.ql\
	intersect_3.ql\
	is_real_list_1.ql\
	islist_1.ql\
	lastD_2.ql\
	last_2.ql\
	map_3.ql\
	maplist_3.ql\
	max_3.ql\
	memberD_2.ql\
	member_2.ql\
	member_rest_3.ql\
	membernvar_2.ql\
	min_3.ql\
	minus_3.ql\
	no_dupls_1.ql\
	non_null_list_1.ql\
	norm_diff_2.ql\
	not_1.ql\
	ordered_1.ql\
	permute_2.ql\
	readline_1.ql\
	readword_1.ql\
	remove_dupl_2.ql\
	reverse_2.ql\
	setof2_3.ql\
	sflr_2.ql\
	string_length_2.ql\
	stringl_length_2.ql\
	sublist_4.ql\
	subset_2.ql\
	subst_4.ql\
	substitute_4.ql\
	substnvar_4.ql\
	union_3.ql\
	user_yes_no_1.ql

all: $(SOURCES) $(COMPILED)
	@echo "Compiled all predicates"
	

%.ql: %.pl
	@echo "compiling $*"
	@echo "fcompile($*)."|$(PROLOG)


makefile:
	@echo "remaking makefile"
	@exec sh Remake *.pl


