view Makefile @ 33:a91fb88a57b2 default tip

add INSTALL document
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 14 Jun 2024 20:29:17 +0000
parents aae078d9eaa6
children
line wrap: on
line source

PROGDIR=decode enc-text gen-pdu scripts
LIBDIR=	libcoding
SUBDIR=	${PROGDIR} ${LIBDIR}
DESTDIR=

all:	${SUBDIR}

decode:		libcoding
enc-text:	libcoding
gen-pdu:	libcoding

${SUBDIR}: FRC config.defs
	cd $@; ${MAKE} ${MFLAGS}

config.defs:
	@echo 'You must run ./configure before make'
	@false

clean: FRC
	rm -f a.out core errs
	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done

install: FRC
	for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
		DESTDIR=${DESTDIR} install); done

FRC: