| delorie.com/archives/browse.cgi | search |
| From: | pjfarley3 AT escape DOT com (Peter J. Farley III) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | automake help needed |
| Message-ID: | <3b6cd296.9879890@news.escape.com> |
| X-Newsreader: | Forte Free Agent 1.21/32.243 |
| Lines: | 26 |
| NNTP-Posting-Date: | Sun, 05 Aug 2001 00:13:23 CDT |
| Organization: | Giganews.Com - Premium News Outsourcing |
| X-Trace: | sv3-tfmBjgU1xJ7naL96UC7LrY+h7W1/GTWdIbqmuXxExAfPLaE4fjYBeGKyl7ZauSuPqhlrZBN5qb8Y2nC!QUIlhSol9miucqW24B9UvLVKHEumKJezfsh6kKBn3Hc238zqITCFNzE+wuFh6h8= |
| X-Complaints-To: | abuse AT GigaNews DOT Com |
| X-DMCA-Notifications: | http://www.giganews.com/info/dmca.html |
| X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
| X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
| Date: | Sun, 05 Aug 2001 05:18:13 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
I have a Makefile.am with the following rule defined in it:
thisrule::
ifdef THISVAR
@echo "what to do when THISVAR is defined"
else
@echo "what to do when THISVAR is NOT defined"
endif
@echo "and this is another action to take"
automake complains that the "else" and "endif" have no matching "if",
but "ifdef" is a valid Make conditional according to the latest Make
info file.
Is there something wrong with this syntax, or does this look like an
automake bug? I tried "ifdef $(THISVAR)" and "ifdef '$(THISVAR)'",
but neither syntax made any difference to the error message.
I'm using the automake version in the archive from simtel,
amake14b.zip.
Help, RTFM, advice all appreciated.
----------------------------------------------------
Peter J. Farley III (pjfarley AT nospam DOT dorsai DOT org OR
pjfarley3 AT nospam DOT escape DOT com)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |