OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> What Do You Do If There's No Destdir Option?
Capn_Fish
post May 5 2007, 07:04 PM
Post #1





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



How do you package an app up if "grep DESTDIR Makefile" returns nothing?
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Capn_Fish
post May 6 2007, 03:23 PM
Post #2





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



Sorry if I'm being thick, but I don't see where to add stuff into this (apparently very abnormal) Makefile.

CODE
# "$Id: Makefile 1526 2005-02-03 15:11:44Z karijes $"
#
# Top-level makefile for the Fast Light Tool Kit (FLTK).
#
# Copyright 1998-1999 by Bill Spitzak and others.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
#
# Please report all bugs and problems to "fltk-bugs@easysw.com".
#

SHELL=/bin/sh
OS_NAME := $(shell uname -s | sed "s/\//-/" | sed "s/_/-/" | sed "s/-.*//g")

DIRS = src tools themes efltk locale test

GENERATED = makeinclude efltk-config

all: $(GENERATED)
    @for dir in $(DIRS); do\
 if test ! -f $$dir/makedepend; then\
     touch $$dir/makedepend;\
 fi;\
 (cd $$dir; $(MAKE) $(MFLAGS)) || exit;\
    done

static: $(GENERATED)
    @for dir in $(DIRS); do\
 if test ! -f $$dir/makedepend; then\
     touch $$dir/makedepend;\
 fi;\
 (cd $$dir; $(MAKE) $(MFLAGS) static) || exit;\
    done

shared: $(GENERATED)
    @for dir in $(DIRS); do\
 if test ! -f $$dir/makedepend; then\
     touch $$dir/makedepend;\
 fi;\
 (cd $$dir; $(MAKE) $(MFLAGS) shared) || exit;\
    done

install: $(GENERATED)
    @for dir in $(DIRS); do\
 if test ! -f $$dir/makedepend; then\
     touch $$dir/makedepend;\
 fi;\
 (cd $$dir; $(MAKE) $(MFLAGS) install) || exit;\
    done

install_static: $(GENERATED)
    @for dir in $(DIRS); do\
 if test ! -f $$dir/makedepend; then\
     touch $$dir/makedepend;\
 fi;\
 (cd $$dir; $(MAKE) $(MFLAGS) install_static) || exit;\
    done

install_shared: $(GENERATED)
    @for dir in $(DIRS); do\
 if test ! -f $$dir/makedepend; then\
     touch $$dir/makedepend;\
 fi;\
 (cd $$dir; $(MAKE) $(MFLAGS) install_shared) || exit;\
    done

install_programs: $(GENERATED)
    @for dir in $(DIRS); do\
 if test ! -f $$dir/makedepend; then\
     touch $$dir/makedepend;\
 fi;\
 (cd $$dir; $(MAKE) $(MFLAGS) install_programs) || exit;\
    done

depend: $(GENERATED)
    @for dir in $(DIRS); do\
 if test ! -f $$dir/makedepend; then\
     touch $$dir/makedepend;\
 fi;\
 (cd $$dir;$(MAKE) $(MFLAGS) depend) || exit;\
    done

uninstall: $(GENERATED)
    @for dir in $(DIRS); do\
 (cd $$dir;$(MAKE) $(MFLAGS) uninstall) || exit;\
    done

clean:
    -@ rm -f core *~ *.o *.bck
    @for dir in $(DIRS); do\
 (cd $$dir;$(MAKE) $(MFLAGS) clean) || exit;\
    done

distclean: clean
    rm -f *~ config.* makeinclude efltk-config

ifeq ($(OS_NAME), MINGW32)

configure:

$(GENERATED):

else

$(GENERATED): configure makeinclude.in configh.in efltk-config.in
    ./configure

configure: configure.in
    autoconf
    
endif

portable-dist:
    epm -v efltk

native-dist:
    epm -v -f native efltk

#
# End of "$Id: Makefile 1526 2005-02-03 15:11:44Z karijes $".
#
Go to the top of the page
 
+Quote Post
desertrat
post May 6 2007, 10:25 PM
Post #3





Group: Members
Posts: 742
Joined: 15-October 05
From: Gulag, Siberia
Member No.: 8,322



QUOTE(Capn_Fish @ May 6 2007, 11:23 PM)
Sorry if I'm being thick, but I don't see where to add stuff into this (apparently very abnormal) Makefile.

I downloaded efltk (which is where I presume you got this mess from smile.gif) and did
CODE
./configure --prefix=/usr/local/
Checking the Makefile(s) in the various directories, it seems that the bit which really does the installing is contained in ./src/makeinclude_tmpl, so I would suggest editing that file.
Disclaimer: I'm no expert so use your own judgement smile.gif
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2014 - 01:18 PM