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  |
|
bonami wrote on Mon, 23 March 2015 02:43I 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
|
|
|
Goto Forum:
Current Time: Mon May 12 06:04:28 CEST 2025
Total time taken to generate the page: 0.02641 seconds
|