LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-13-2013, 09:49 AM   #1
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 380
Blog Entries: 1

Rep: Reputation: Disabled
lilo.SlackBuild vs Makefile


Going back as far as v13.0, the SlackBuilds are pretty-much the same.
A problem presents itself just after extracting the lilo source in /tmp, chown root etc., then
`make || exit 1`

The lilo src Makefile has no default. You need to supply an argument like,
`make all || exit 1`
From a bash prompt, `make' with no arguments generates the help message.
I don't remember why I stumbled upon this, the pre-built versions for x86_64 all work fine.
 
Old 12-14-2013, 02:54 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
I can see why Pat has missed this for so long, the first call to make shows the help and then exits without error.
The second call to make with install as the target results in the actual build as all the prerequisites are called in and since the code is pretty clean it probably hasn't had an error in all that time.
 
Old 12-14-2013, 03:13 PM   #3
hpfeil
Member
 
Registered: Nov 2010
Location: Tucson, Arizona US
Distribution: Slackware Current
Posts: 380

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
It's that pesky `|| exit 1` that needs attention. I'm certain that this used to work before the new guy started fiddling about with the makefile. Without a default target, nothing below the first call to `make` gets executed. In a previous version, there was an include file with lots of variable definitions. Maybe that set up a default target?

I keep getting mixed up: in Bash, (0 == true); in C and Perl, (0 == false). Good thing I'll never see that on an exam. ;-)
 
Old 12-19-2013, 04:19 AM   #4
Emsi
LQ Newbie
 
Registered: Nov 2013
Location: Bulgaria
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
This is exit status: 0 represents success, 1 and higher mean some sort of error. It's not just true or false.
 
  


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
[SOLVED] [makefile] How to apply bash env to Makefile? poplinux Programming 2 06-19-2012 01:55 AM
[SOLVED] need of makefile info ? how the linux make file is different from simple c makefile ? rpittala Linux - Newbie 2 05-07-2012 08:04 PM
Is it mandatory to have the name of the makefile as 'Makefile' for kernal module comp narender.d Linux - Kernel 3 05-29-2009 06:26 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:25 AM.

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