# main makefile... # $Amigan: phoned/Makefile,v 1.10 2005/06/27 21:05:51 dcp1990 Exp $ # Oh My Fucking God, this is such a big, unportable mess. Oh well. # BSD Make > * include global.mk APPS=phonectl phoned lib scripts xfone APPSUF=${APPS:S/$/_app/} APPSCLEAN=${APPS:S/$/_cl/} CLEANFILES=.config all: ${APPSUF} ${APPSUF}: .config @cd ${@:S/_app$//} && make clean: ${APPSCLEAN} ourclean ${APPSCLEAN}: @cd ${@:S/_cl$//} && make clean ourclean: rm -f ${CLEANFILES} .config: ./configure.tcl $(PREFIX) ${TESTING} # rm -f .conf #.conf: # @perl -e 'require 5.0001; require Modem::fgetty' \ # || echo "Needs Modem::Vgetty and perl 5.0001 at least."