# Translate CPNS demon for fast startup:

# Required:
# - installed curry2prolog system

LOGFILE="/tmp/PAKCS_CPNSD_LOG"

cpns_demon.state: cpns_demon.curry ../lib/Ports.curry
	(echo ":l cpns_demon" ; echo ":save" ) | ../bin/pakcs

# Shows the currently registered ports:
.PHONY: show
show: cpns_demon.state
	echo 'show' | ./cpns_demon.state

# Shows the log file of the demon:
.PHONY: showlog
showlog: 
	cat ${LOGFILE}

.PHONY: clean
clean: 
	./stop
	../bin/cleancurry
