1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
CXXFLAGS = -Wall -g -pipe -W -DUSE_FAM -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED
INSTALL = install
INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CXXFLAGS += -O0
else
CXXFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
export QTDIR=/usr/share/qt3
manpage: debian/lincvs.1
debian/lincvs.1: LinCVS/lincvs.bin
help2man --no-info $< > $@
configure: configure-stamp
configure-stamp:
dh_testdir
qmake -o Makefile lincvs.pro
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
# rebuild .qm files if needed
lrelease lincvs.pro
$(MAKE) "CXXFLAGS=$(CXXFLAGS)"
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_clean
-test -f Makefile && $(MAKE) distclean
rm -rf .moc .obj .ui
rm -f Makefile
rm -f LinCVS/lincvs.bin
rm -f LinCVS/Tools/*.sh
find LinCVS/Messages -name '*.qm' -a ! -name 'dummy.qm' -print0 \
| xargs -r0 rm -f
rm -f debian/lincvs.1
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install
$(INSTALL_FILE) LinCVS/Messages/*.qm $(CURDIR)/debian/lincvs/usr/lib/lincvs
$(INSTALL_PROGRAM) LinCVS/lincvs.bin $(CURDIR)/debian/lincvs/usr/bin/lincvs
$(INSTALL_PROGRAM) LinCVS/Tools/rshwrapper $(CURDIR)/debian/lincvs/usr/lib/lincvs/rshwrapper
$(INSTALL_PROGRAM) LinCVS/Tools/ssh-askpass.bin $(CURDIR)/debian/lincvs/usr/lib/lincvs/ssh-askpass
$(INSTALL_FILE) LinCVS/AppIcon.xpm $(CURDIR)/debian/lincvs/usr/share/pixmaps/lincvs-16.xpm
binary-indep: build install
binary-arch: build install manpage
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples LinCVS/Tools/*.sh
dh_installmenu
dh_installman
dh_installchangelogs ChangeLog
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install manpage
|