Be verbose when being invoked manually, be silent when not
authorJoey Schulze <joey@infodrom.org>
Wed, 24 Apr 2002 20:22:38 +0000 (20:22 +0000)
committerJoey Schulze <joey@infodrom.org>
Wed, 24 Apr 2002 20:22:38 +0000 (20:22 +0000)
src/Makefile

index 9e6cba3..79778bb 100644 (file)
@@ -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)