if exists statement



I'm trying to write an if exists for a port makefile.

I tried:

.if exists= ${PREFIX}/etc/rc.d
exit
else
${MKDIR} ${PREFIX}/etc/rc.d
.endif

but it doesn't work.

Can someone give me the right syntax?

TIA

Beech
--
---------------------------------------------------------------------------------------
Beech Rintoul - Sys. Administrator - beech@xxxxxxxxxxxxxxxxxx
/"\ ASCII Ribbon Campaign | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310
X - NO Word docs in e-mail | Anchorage, AK 99501
/ \ - Please visit Alaska Paradise - http://www.alaskaparadise.com
---------------------------------------------------------------------------------------











Attachment: pgpEBMG4jzEt1.pgp
Description: PGP signature



Relevant Pages

  • Re: Sending PRN files to the printer.
    ... because the search "Joe Hecht PrnRaw" doesnt show up any ... {$ENDIF} ... function PrintRawData(hPrn: THandle; ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: How to structure installation of TCPIP related products
    ... With 5.3 and later, I can define the service with TCPIP> SET SERVICE, including the username, startup file and log file etc. ... $ ENDIF ... Figure out which TCP/IP Product is being used ... $ EXIT ...
    (comp.os.vms)
  • [PATCH][IDE] update dtc2278 driver
    ... mark exit functions with __exit ... +static int __init probe_dtc2278 ... -static void dtc2278_release ...
    (Linux-Kernel)
  • Re: Third sunday in the month
    ... You could compute the date-time you want to do the "restart", ... the next date-time within that conditional code stream.- Ocultar texto entre aspas - ...
    (comp.os.vms)
  • Re: loop never exits on ESC
    ... You've placed the ON ESCAPE within the loop. ... It functions much like the ON KEY LABEL. ... > ENDIF ... > * if no further slots, exit ...
    (microsoft.public.fox.programmer.exchange)