help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weired error (related with long names or names with specially character


From: Peng Yu
Subject: Weired error (related with long names or names with specially character?)
Date: Wed, 9 Jun 2010 11:48:48 -0500

Hi,

I have the same make file in two directories. One directory has files
with long file names (with '_' and '-' in the file name). The other
directory has files with short files names. The makefile works in the
latter directory but not the former. I have no clue what is wrong.
Would you please help me on this issue?

/make_test_short$ diff Makefile ../make_test_long/Makefile
/make_test_short$ cat Makefile
.PHONY: all clean

MEGABLAST_BL2SEQ:=$(wildcard *.megablast.bl2seq)
DIFF_BL2SEQ:=$(patsubst %.megablast.bl2seq,%.diff.bl2seq,$(MEGABLAST_BL2SEQ))

all: $(DIFF_BL2SEQ)

$(DIFF_BL2SEQ): %.diff.bl2seq: %.megablast.bl2seq %.blastn.bl2seq
        diff $^ > $@

clean:
        $(RM) *.diff.bl2seq


/make_test_short$ ll -go
total 4
-rw------- 1   0 2010-06-09 11:41 a.blastn.bl2seq
-rw------- 1   0 2010-06-09 11:41 a.megablast.bl2seq
-rw------- 1 278 2010-06-09 11:40 Makefile
/make_test_short$ make
diff a.megablast.bl2seq a.blastn.bl2seq > a.diff.bl2seq
/make_test_long$ ll -go
total 28
-rw------- 1 807 2010-06-09 11:34
HWI-EAS11X_10097__4__1__15045__4929__0.blastn.bl2seq
-rw------- 1 614 2010-06-09 11:34
HWI-EAS11X_10097__4__1__15045__4929__0.megablast.bl2seq
-rw------- 1 371 2010-06-09 11:34
HWI-EAS11X_10097__4__25__5841__8476__0.blastn.bl2seq
-rw------- 1 371 2010-06-09 11:34
HWI-EAS11X_10097__4__25__5841__8476__0.megablast.bl2seq
-rw------- 1 536 2010-06-09 11:34
HWI-EAS11X_10097__6__1__2504__3607__0.blastn.bl2seq
-rw------- 1 369 2010-06-09 11:34
HWI-EAS11X_10097__6__1__2504__3607__0.megablast.bl2seq
-rw------- 1 278 2010-06-09 11:42 Makefile
/make_test_long$ make
diff HWI-EAS11X_10097__4__1__15045__4929__0.megablast.bl2seq
HWI-EAS11X_10097__4__1__15045__4929__0.blastn.bl2seq >
HWI-EAS11X_10097__4__1__15045__4929__0.diff.bl2seq
make: *** [HWI-EAS11X_10097__4__1__15045__4929__0.diff.bl2seq] Error 1


-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]