From: Joey Schulze Date: Wed, 24 Apr 2002 20:22:38 +0000 (+0000) Subject: Be verbose when being invoked manually, be silent when not X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fluonnotar.infodrom.org;a=commitdiff_plain;h=f9465311306822dad2e566de69d5af553ef9f699 Be verbose when being invoked manually, be silent when not --- diff --git a/src/Makefile b/src/Makefile index 9e6cba3..79778bb 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,6 +3,12 @@ FILES = $(WML_FILES:%.wml=%.html) SFILES = $(WML_FILES:%.wml=%.shtml) PFILES = $(WML_FILES:%.wml=%.php3) +ifeq ($(TERM),dumb) +WML = /usr/bin/wml -n -q +else +WML = /usr/bin/wml -n +endif + DIRS = $(shell find . -maxdepth 1 -type d -not -name . -not -name CVS) ROOT_PREFIX = $(shell perl -MCwd -e '$$_ = cwd;s/^.*src\/?//;@f=split /\//;$$n=$$\#f+1;print "../"x $$n;' ) @@ -12,7 +18,7 @@ IFLAGS = -I. -I$(ROOT_PREFIX)../Styles .SUFFIXES: .wml .html .wml.html: - /usr/bin/wml -n $(IFLAGS) $*.wml| sed 's:"\([a-zA-Z0-9_\.-]*\.\)\?imgdot-1x1-transp\(-ffffff\)\?\.gif":"$(ROOT_PREFIX)gifs/imgdot-1x1-transp.gif":' > $*.html + $(WML) $(IFLAGS) $*.wml| sed 's:"\([a-zA-Z0-9_\.-]*\.\)\?imgdot-1x1-transp\(-ffffff\)\?\.gif":"$(ROOT_PREFIX)gifs/imgdot-1x1-transp.gif":' > $*.html $(ROOT_PREFIX)../bin/fixsuffix $*.html all: $(FILES)