LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2007, 04:24 AM   #1
shifter
Member
 
Registered: May 2006
Distribution: Slackware, DragonFly
Posts: 233

Rep: Reputation: 30
problem with Makefile


#make
cd it/webegg/IPO/bo && make ;
make: Fatal error in reader: Makefile, line 18: Unexpected end of line seen
Current working directory /app/ipo/src/it/webegg/IPO/bo
*** Error code 1
make: Fatal error: Command failed for target `classes'

My makefile is the following:
Quote:
PREFIX=it/webegg/IPO/
ROOT_DIR=/app/ipo/
CPATH=${ROOT_DIR}classes:${ROOT_DIR}ext_jar/asrt.jar:${ROOT_DIR}ext_jar/vbejb.jar:${ROOT_DIR}ext_jar/jaxp.jar:${ROOT_DIR}ext_jar/httpclient.jar:${ROOT_DIR}ext_jar/servlet.jar
CDEST=${ROOT_DIR}classes
PKG_DIR=${ROOT_DIR}src
CUR_DIR=${PWD}/
EJB_FILE=ipo_auto.jar
JAR_FILE=ipo_auto_classes.jar
XML_DIR=${ROOT_DIR}xml/

JAVAC=javac
JFLAGS=-d ${CDEST} -classpath ${CPATH}
JAR=jar cf
VBJ=vbj com.inprise.ejb.util.Verify
VBJC=vbjc
J2IIOP=java2iiop
RM=rm -Rf

classes:
cd ${PREFIX}bo && ${MAKE} ;
cd ${PREFIX}bo/auto && ${MAKE};
cd ${PREFIX}bo/logic && ${JAVAC} ${JFLAGS} FileTrStatusUpdater.java;
cd ${PREFIX}utility && ${MAKE} ;
cd ${PREFIX}bo/logic && ${MAKE} ;
cd ${PREFIX}dbif/file/logic && ${MAKE} ;
cd ${PREFIX}dbif/rdbms && ${MAKE} ;
cd ${PREFIX}dbif/rdbms/auto && ${MAKE} ;
cd ${PREFIX}dbif/rdbms/logic && ${MAKE} ;
cd ${PREFIX}mw/ejb/auto && ${MAKE} ;
cd ${PREFIX}mw/proxy/auto && ${MAKE} ;
cd ${PREFIX}mw/ejb/logic && ${MAKE} ;
cd ${PREFIX}mw/proxy/logic && ${MAKE} ;
cd ${PREFIX}ui/service && ${MAKE} ;
cd ${PREFIX}ui/http && ${MAKE} ;
cd ${PREFIX}ui/http/jsp/auto && ${MAKE} ;
cd ${PREFIX}ui/http/jsp/logic && ${MAKE} ;
cd ${PREFIX}ui/http/servlet/logic && ${MAKE} ;
# cd ${PREFIX}ui/http/servlet/auto && ${MAKE} ;

autoclean:
cd ${PREFIX}bo/auto && ${MAKE} clean;
cd ${PREFIX}dbif/rdbms/auto && ${MAKE} clean;
cd ${PREFIX}mw/ejb/auto && ${MAKE} clean;
cd ${PREFIX}mw/proxy/auto && ${MAKE} clean;
cd ${PREFIX}ui/http/jsp/auto && ${MAKE} clean;
# cd ${PREFIX}ui/http/servlet/auto && ${MAKE} clean;

logicclean:
cd ${PREFIX}mw/ejb/logic && ${MAKE} clean;
cd ${PREFIX}mw/proxy/logic && ${MAKE} clean;
cd ${PREFIX}bo/logic && ${MAKE} clean;
cd ${PREFIX}dbif/rdbms && ${MAKE} clean;
cd ${PREFIX}dbif/rdbms/logic && ${MAKE} clean;
cd ${PREFIX}dbif/file/logic && ${MAKE} clean;
cd ${PREFIX}ui/http/jsp/logic && ${MAKE} clean;

auto:
cd ${PREFIX}bo/auto && ${MAKE};
cd ${PREFIX}dbif/rdbms/auto && ${MAKE} ;
cd ${PREFIX}mw/ejb/auto && ${MAKE} ;
cd ${PREFIX}mw/proxy/auto && ${MAKE} ;
cd ${PREFIX}ui/http/jsp/auto && ${MAKE} ;
# cd ${PREFIX}ui/http/servlet/auto && ${MAKE} ;

logic:
cd ${PREFIX}bo/logic && ${MAKE} ;
cd ${PREFIX}dbif/rdbms/logic && ${MAKE} ;
cd ${PREFIX}dbif/file/logic && ${MAKE} ;
cd ${PREFIX}mw/ejb/logic && ${MAKE} ;
cd ${PREFIX}mw/proxy/logic && ${MAKE} ;
cd ${PREFIX}ui/http/jsp/logic && ${MAKE} ;

clean: autoclean logicclean
I am desperated...
 
Old 07-27-2007, 05:31 AM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
Take a closer look at your Makefile. Each line that is indented should begin not with spaces, but with a tab character. This is an important concept in Makefiles.

If that does not fix your problem, please consider this:

With makefiles, it's important to be able to see which lines are indented from the lefthand margin.

Could you please repost this makefile, not between QUOTE tags, but between CODE tags? That will help us to see what is indented and what is not.

To do this:
  1. Click the Go Advanced button at the bottom of your editing window.
  2. If you have not already done so, insert the content of your Makefile into this new editing window.
  3. Highlight that content with your mouse.
  4. Click the # icon at the top of the editing window.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with makefile killer_instinct Programming 19 12-23-2006 02:23 PM
Makefile problem LuvMyKelly Linux - Newbie 2 12-09-2005 01:13 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 04:57 AM
Another problem with Makefile lucs Slackware 3 02-14-2005 06:06 PM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 01:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration