[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recursive wildcard
From: |
Jens Schweikhardt |
Subject: |
Re: recursive wildcard |
Date: |
Thu, 24 Feb 2005 12:55:13 +0100 |
User-agent: |
Mutt/1.5.6i |
On Thu, Feb 24, 2005 at 11:25:40AM +0100, Matthias Teege wrote:
# Moin,
#
# I have a rule which compress all html files in a directory. It looks
# like this:
#
# %.html.gz: %.html
# gzip -c $< > $@
#
# HTMLFILES = $(wildcard *.html)
# ZIPFILES = $(HTMLFILES:.html=.html.gz)
#
# all: ($ZIPFILES)
all: $(ZIPFILES)
# It works but now I have a lot of subdirectorys and don't want to put a
# Makefile in each directory. How can "extend" the wildcard matching so
# that subdirs are included?
Use
HTMLFILES := $(shell find . -name '*.html')
instead. (Untested)
Regards,
Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
- recursive wildcard, Matthias Teege, 2005/02/24
- Re: recursive wildcard,
Jens Schweikhardt <=