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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
|
#!/usr/bin/make -f
# Sample debian/rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself. (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
# There used to be `source' and `diff' targets in this file, and many
# packages also had `changes' and `dist' targets. These functions
# have been taken over by dpkg-source, dpkg-genchanges and
# dpkg-buildpackage in a package-independent way, and so these targets
# are obsolete.
#export DH_VERBOSE=1
export DH_OPTIONS
package=clips
core/configure: core/configure.in
cd core && autoconf
cd core && chmod a+x ./configure ./mkinstalldirs
x-prjct/xinterface/configure: x-prjct/xinterface/configure.in
cd x-prjct/xinterface && autoconf
configure: core/configure.status
core/configure.status:
dh_testdir
cd core && sh ./configure --prefix=$(CURDIR)/debian/clips/usr
build-arch: build-arch-stamp
build-arch-stamp: configure
dh_testdir
cd core && $(MAKE) -f Makefile clips
touch $@
build-indep: build-indep-stamp
build-indep-stamp:
dh_testdir
cd doc && $(MAKE) -f Makefile all
touch $@
build: build-arch-stamp build-indep-stamp
clean:
dh_testdir
dh_testroot
-rm -f build configure
cd core && ( $(MAKE) -i distclean || $(MAKE) -f Makefile.in distclean )
cd doc && $(MAKE) -i distclean
dh_clean build-arch-stamp build-indep-stamp
install: DH_OPTIONS=
install: build
dh_testdir
dh_testroot
dh_installdebconf
dh_prep
dh_installdirs -a
cd core && $(MAKE) -f Makefile INSTALL_PROGRAM='install' \
prefix=$(CURDIR)/debian/libclips/usr install-libs
# Fix for lib files
rm `pwd`/debian/libclips/usr/lib/libclips.a
rm `pwd`/debian/libclips/usr/lib/libclips.so
cd core && $(MAKE) -f Makefile INSTALL_PROGRAM='install' \
prefix=$(CURDIR)/debian/clips/usr install-bin
cd core && $(MAKE) -f Makefile INSTALL_PROGRAM='install' \
prefix=$(CURDIR)/debian/libclips-dev/usr install-includes
install -m655 core/libclips.a `pwd`/debian/libclips-dev/usr/lib/
[ ! -e `pwd`/debian/libclips-dev/usr/lib/libclips.so ] || ( cd `pwd`/debian/libclips-dev/usr/lib && ln -s libclips.so.6.30 libclips.so )
# Remove empty dirs created by the install target
[ ! -d $(CURDIR)/debian/clips/usr/share/clips ] || rmdir $(CURDIR)/debian/clips/usr/share/clips
[ ! -d $(CURDIR)/debian/libclips-dev/usr/share/doc/clips ] || rmdir $(CURDIR)/debian/libclips-dev/usr/share/doc/clips
# Install desktop file
install -m 644 debian/clips.xpm $(CURDIR)/debian/clips/usr/share/pixmaps
install -m 644 debian/clips.desktop $(CURDIR)/debian/clips/usr/share/applications
binary-indep: DH_OPTIONS=-i
binary-indep:
dh_testdir
dh_testroot
dh_installdirs
# Note: this apparently does not work properly yet,
# dh_installdocs -pclips-doc --doc-main-package=clips
dh_installdocs
# Note: this apparently does not work properly yet,
# dh_installexamples -pclips-common --doc-main-package=clips examples/*
dh_installexamples
dh_installman
dh_installinfo
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: DH_OPTIONS=-a
binary-arch: install
dh_testdir
dh_testroot
dh_installdirs
dh_installdocs
dh_installmenu
dh_installcron
dh_installman
dh_installinfo
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
dh_makeshlibs -V
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
# Rules to build the xclips sources
# Note: currently not used in the package
configure-x: x-prjct/xinterface/configure.status
x-prjct/xinterface/configure.status:
dh_testdir
cd x-prjct/xinterface && sh ./configure \
--prefix=$(CURDIR)/debian/clips/usr/ \
--enable-xclips --with-clipssrc=../../core/
cd core && sh ./configure --prefix=$(CURDIR)/debian/xclips/usr
build-x: build-x-stamp
build-x-stamp: configure-x
dh_testdir
cd x-prjct/xinterface && $(MAKE) -f Makefile xclips
touch $@
clean-x:
dh_testdir
dh_testroot
-rm -f build-x configure-x
cd x-prjct/xinterface && ( $(MAKE) -i distclean || $(MAKE) -f Makefile.in distclean )
dh_clean build-stamp
install-x: DH_OPTIONS=
install-x: build-x
cd x-prjct/xinterface && $(MAKE) -f Makefile \
INSTALL_PROGRAM='install -c -s' \
prefix=$(CURDIR)/debian/xclips/usr install-bin
install -m644 Xclips $(CURDIR)/debian/xclips/etc/X11/app-defaults/Xclips
# Remove empty dirs created by the install target
[ ! -d $(CURDIR)/debian/xclips/usr/share/clips ] || rmdir $(CURDIR)/debian/xclips/usr/share/clips
# Install desktop file for Xversion
install -m 644 debian/xclips.desktop $(CURDIR)/debian/xclips/usr/share/applications
.PHONY: build build-arch build-indep build-x clean binary binary-arch binary-indep install
|