[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding extra rules to make
From: |
Benoit Sigoure |
Subject: |
Re: Adding extra rules to make |
Date: |
Thu, 21 Jun 2007 23:26:31 +0200 |
User-agent: |
Internet Messaging Program (IMP) H3 (4.1.3) |
Quoting Daniel Leidert <address@hidden>:
I guess, you further need a
SUFFIXES = .txt .bin
No, Automake is able to infer this when seeing user-defined
suffix-rules such as
.txt.bin:
...
Remove the SUFFIXES line and run automake -v to convince yourself.
$ cat Makefile.am
SRC = foo.txt
BIN = $(SRC:.txt=.bin)
.txt.bin:
cp -f $^ $@
all-local: $(BIN)
echo $(BIN)
$ automake -v |& grep '\.txt'
automake: Sources ending in .txt become .bin
$ grep SUFFIXES Makefile
.SUFFIXES:
.SUFFIXES: .bin .txt
Then it works here.
Same here and without the SUFFIXES :)
Cheers,
--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.