How to write a FreeBSD-style makefile : checking for external vars existence?
- From: Garrett Cooper <youshi10@xxxxxxxxxxxxxxxx>
- Date: Sat, 28 Oct 2006 17:40:24 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I was just wondering...
- -How do I go about checking for external variables, as defined by a shell?
- -How do I go about checking for variables as defined in make.conf?
- -What do variable definitions generally look like in each of these
cases, ie what's the difference between $$VAR, ${VAR}, and VAR?
The reason why I'm asking is because I'm trying to make a set of
FreeBSD makefiles and the following type of declaration doesn't work for
some odd reason..
.ifdef $$VAR
@echo define $$VAR please!
.else
#do something to build program
.endif
Make reports errors in the above case if I put anything in other
than VAR, which is confusing given my knowledge of shell scripting and
so on.
TIA,
- -Garrett
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFQ/h36CkrZkzMC68RAv9jAJ4wrk2LKzOYwEoXFmjcCrCh4eEewgCeKTwj
+7BbbZ5ThjGJiOUZARwmoos=
=/FVX
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: How to write a FreeBSD-style makefile : checking for external vars existence?
- From: Daniel O'Connor
- Re: How to write a FreeBSD-style makefile : checking for external vars existence?
- Prev by Date: Re: System panic under load (additional information)
- Next by Date: Re: How to write a FreeBSD-style makefile : checking for external vars existence?
- Previous by thread: Bugathon, yeah it's time again
- Next by thread: Re: How to write a FreeBSD-style makefile : checking for external vars existence?
- Index(es):
Relevant Pages
|
|