Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Makefile's install depends on all
Re: Makefile's install depends on all [message #44527 is a reply to message #44526] Mon, 23 March 2015 06:21 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

bonami wrote on Mon, 23 March 2015 02:43
I think you meant https:// code.google.com/p/upp-mirror/source/browse/trunk/uppbox/lpbu ild2/mkfile
I did not mention it because I cannot understand it. Don't know how to migrate it, since its parameters include package, etc. Plus, it has no "dist" target?
Yes, that's it. I'm not sure what you mean by dist target, but it definitely doesn't have it. Also it has no install target, it only handles building. You can have a look on how it can be used at the other makefile in the same directory, which includes the general one to build theide and umk: https://code.google.com/p/upp-mirror/source/browse/trunk/upp box/lpbuild2/Makefile

Simpler example might be something like this (I haven't got time to actually test it, so sorry if there are some minor issues):
PKG=MyPackage
NESTS=mysrc uppsrc
FLAGS=GUI GCC DEBUG DEBUG_FULL STACKTRACE

build: MyPackage

# this is only needed if you want support parallel builds with dpkg-buildpackage -j
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    JOBS:=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
else
    JOBS:=1
endif

OPTS:=CC="cc -g" CXX="c++ -g" CFLAGS="-g" CXXFLAGS="-g" LDFLAGS="-Wl,--gc-sections -Wl,-O,2" TIME= COLOR=0 USEMAINCFG=0
y
$(PKG):
        $(MAKE) -f mkfile JOBS=$(JOBS) PKG=$@ "NESTS=$(NESTS)" $(OPTS) "FLAGS=$(FLAGS)" TARGET=`pwd`/$@

install:
        install -D $(PKG) $(DESTDIR)/usr/bin/

clean:
        rm -f $(PKG)

Just edit the first three lines to suit your needs and place it to the same directory where the mkfile and you nests (mysrc and uppsrc in this exaple) are.

Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: umk fails on launchpad
Next Topic: apps built depends on libstdc++
Goto Forum:
  


Current Time: Tue May 14 00:48:55 CEST 2024

Total time taken to generate the page: 0.03072 seconds