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

[linux-team] astuce make



Tiens, une petite astuce que j'ai trouvé au passage, avec GNU make:
voici comment inclure in fichier dans un Makefile si et seulement si
il existe:

ifeq ($(wildcard foo.mk),foo.mk)
  include foo.mk
endif

-- 
  -o)  Pascal Bleser        |
  /\\  C++/UNIX Development | God is real, unless
 _\_v  ATOS Payment Systems | declared integer.
       Aachen, Germany      | 
<pbleser@atos-group.com>-------<guru@linuxbe.org>

---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.