Editing Packaging a Qt application

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 77: Line 77:
#!/usr/bin/make -f
#!/usr/bin/make -f
APPNAME := my_app_name
APPNAME := my_app_name
-
builddir:
 
-
        mkdir -p builddir
 
-
builddir/Makefile: builddir
+
Makefile:
-
         cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro
+
         qmake PREFIX=/usr ../$(APPNAME).pro
build: build-stamp
build: build-stamp
-
build-stamp: builddir/Makefile
+
build-stamp: Makefile
         dh_testdir
         dh_testdir
         # Add here commands to compile the package.
         # Add here commands to compile the package.
-
         cd builddir && $(MAKE)
+
         $(MAKE)
         touch $@
         touch $@
-
clean:
+
clean: Makefile
         dh_testdir
         dh_testdir
         dh_testroot
         dh_testroot
         rm -f build-stamp
         rm -f build-stamp
         # Add here commands to clean up after the build process.
         # Add here commands to clean up after the build process.
-
         rm -rf builddir
+
         $(MAKE) clean
         dh_clean
         dh_clean
 +
install: build
install: build
         dh_testdir
         dh_testdir

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: