entweder bin ich zu blöde oder die anderen zu schlau
Also fangen wir mal an .
Ich hab mein kleines Programm fertig und würde es nun gerne als deb anbieten.
Das hier ist auch genau mein problem
und hier die vermeintliche Lösungthe application i'm packaging uses qmake to generate the Makefile. But qmake uses its own DESTDIR variable (which points to where the binary
target should go), so it conflicts with DESTDIR used by
dpkg-buildpackage.
nur leider ist es nicht so einfachin the .pro file:
!mac:unix:BIN_DIR = $(DEBIAN_DESTDIR)/usr/bin
!mac:unix:DATA_DIR = $(DEBIAN_DESTDIR)/usr/share/packagename
in debian rules:
$(MAKE) install DEBIAN_DESTDIR=$(CURDIR)/debian/packagename
hier mein erstes Makefile
Code: Alles auswählen
MAKEFILE = Makefile
QMAKE = qmake
DEL_FILE = rm -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
INSTALL_FILE=
INSTALL_DIR =
SUBTARGETS = \
sub-src
first: all
all: Makefile $(SUBTARGETS)
src/$(MAKEFILE):
@$(CHK_DIR_EXISTS) "src" || $(MKDIR) "src"
cd src && $(QMAKE) src.pro -o $(MAKEFILE)
sub-src: src/$(MAKEFILE) FORCE
cd src && $(MAKE) -f $(MAKEFILE)
Makefile: corebpush.pro /usr/share/qt3/mkspecs/default/qmake.conf
$(QMAKE) -o Makefile corebpush.pro
qmake: qmake_all
@$(QMAKE) -o Makefile corebpush.pro
all: $(SUBTARGETS)
qmake_all: src/$(MAKEFILE)
( [ -d src ] && cd src ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true
clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE
( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) $@; ) || true
uninstall_subdirs: qmake_all FORCE
( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true
install_subdirs: qmake_all FORCE
( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) install; ) || true
distclean: qmake_all FORCE
( [ -d src ] && cd src ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true
install: install_subdirs
uninstall: uninstall_subdirs
FORCE:
ein Makefile generiert aus der src.pro
und die sieht so aus
Code: Alles auswählen
FORMS += corebpushWDG.ui \
dirnameDLG.ui
HEADERS += corebpushwdg.h \
corebpushWDG.ui.h \
dirnamedlg.h \
myimage.h
SOURCES += corebpushwdg.cpp \
dirnamedlg.cpp \
main.cpp
TARGET=/usr/bin/corebpush
hat das leider nicht den gewünschten erfolg
Benutze dh_make und dpkg-buildpackage
Ich hoffe das mir da jemand helfen kann ,denn ich versuche seit zwei Tagen nichts anderes
mit der hoffnung auf zahlreichen Antworten
gruß
central