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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# not needed, but for convenience when I work by hand:
#export QUILT_PATCHES=debian/patches
PACKAGE=gwaei
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
endif
clean:
dh_testdir
dh_testroot
make clean || true
#for i in 16x16 24x24 32x32 ; do \
# rm -f src/images/$$i/gwaei.xpm ; \
#done
rm -f config.status Doxyfile config.h stamp-h1 config.log
rm -f Makefile help/gwaei.omf help/Makefile po/Makefile libtool
rm -f po/POTFILES po/Makefile.in rpm/rpm_gconf_install_post.sh
rm -f po/stamp-it
rm -f rpm/fedora/SPECS/gwaei.spec rpm/gwaei.spec
rm -f src/gwaei/doxyfile
rm -f src/gwaei/Makefile
rm -f src/gwaei/help/Makefile src/gwaei/help/gwaei.omf
rm -f src/gwaei/ui/Makefile
rm -f src/gwaei/include/gwaei/Makefile
rm -f src/libwaei/doxyfile
rm -f src/libwaei/Makefile src/libwaei/include/libwaei/Makefile
rm -f src/waei/doxyfile src/waei/Makefile
rm -f src/waei/include/waei/Makefile
rm -f src/images/Makefile
rm -f src/Makefile src/xml/Makefile src/kpengine/Makefile
rm -f mandir/Makefile
rm -rf src/kpengine/.deps src/.deps
rm -f src/desktop/Makefile src/schemas/Makefile
rm -f src/img/Makefile
rm -f deb/DEBIAN/control deb/DEBIAN/postinst deb/DEBIAN/prerm
rm -f build-stamp configure-stamp
dh_autoreconf_clean
dh_clean
config: config-stamp
config-stamp: configure
dh_testdir
dh_autoreconf
CFLAGS="$(CFLAGS)" dh_auto_configure -- \
--sysconfdir=/usr/share \
--libdir='$${prefix}/lib' \
--disable-scrollkeeper
# convert png icons to xpm so that we can use them with menu system
#for i in 16x16 24x24 32x32 ; do \
# convert src/images/$$i/gwaei.png src/images/$$i/gwaei.xpm ; \
#done
touch config-stamp
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: config
dh_testdir
$(MAKE)
touch build-stamp
install: build
dh_testdir
dh_testroot
dh_prep
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
dh_install --sourcedir=debian/tmp
dh_makeshlibs
# GPL is shipped globally, and mentioned in the copyright file
rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/gwaei/COPYING
# this will be already installed by dh_installchangelogs below
rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/gwaei/ChangeLog
#
# install additional xpm icons
#dh_installdirs usr/share/pixmaps
#cp src/images/16x16/gwaei.xpm \
# $(CURDIR)/debian/$(PACKAGE)/usr/share/pixmaps/gwaei_16x16.xpm
#cp src/images/32x32/gwaei.xpm \
# $(CURDIR)/debian/$(PACKAGE)/usr/share/pixmaps/gwaei_32x32.xpm
#cp src/images/24x24/gwaei.xpm \
# $(CURDIR)/debian/$(PACKAGE)/usr/share/pixmaps/gwaei.xpm
# Build architecture-independent files here.
binary-indep: build install
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_makeshlibs
dh_installchangelogs
dh_installdocs NEWS README THANKS
#dh_installmenu
# should be done by the installation above
#dh_installman mandir/gwaei.1 mandir/waei.1
dh_makeshlibs
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: config build clean binary-indep binary-arch binary install
|