help-make
[Top][All Lists]
Advanced

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

make cannot resolve "$$(@F)" in openvms


From: xiangdong Li
Subject: make cannot resolve "$$(@F)" in openvms
Date: Thu, 5 Mar 2009 23:13:30 -0800 (PST)

hi,

I got the gnu make package from the GNU ftp site, which is the newest version, 
v3.8.1. I built it on the openvms/I64 v8.3 successfully when followed the build 
instructions. 

I encountered the problem when make the following makefile:

makefile.vms
      BINDIR=[--.bin]
      DEFINE = /define=(_XOPEN_SOURCE
      INCLUDE = /include=([])
      PREFIX = /prefix=all
      CFLAGS = $(CGFLAG)$(PREFIX)$(INCLUDE)

     .c.obj:
           $(CC) $(CFLAGS)$(DEFINE)) /obj=$@ $<

     GOBJS=a.obj b.obj
     GOBJSLIST=$(GOBJS:.obj=.obj,)
     a.exe: $(GOBJS) a.obj c.obj
            link/map/cross/full/exe=$@ $(GOBJSLIST)c.obj
     
      all: a.exe $(INSTALL)
      
      install:: $(INSTALL)

      $(BINDIR)a.exe:    $$(@F)
            -create/dir $(BINDIR)
            -$(RM) $@;*
            copy $(@F) $@

the error as below:
$ make -f makefile.vms install
make.exe;3: *** No rule to make target `$(@f)', needed by `[--.bin]a.exe'.
 Stop.
%NONAME-E-NOMSG, Message number 00000002

I am sure this makefile works well on linux.


Regard
Xiangdong.



      




reply via email to

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