* config/postinst.hbs
+ Will now install root documents (INSTALL, COPYING, TODO, ChangeLog)
to HB_DOC_INSTALL on *nix systems.
+ Will now create the HB_MAN_INSTALL dir before copying.
* debian/rules
+ Sets HB_MAN_INSTALL.
+ Sets HB_BUILD_SHARED=yes.
% Deleted explicit reference to man files and ChangeLog, these are
now installed by postinst.hbs and picked automatically by debhelper.
This means that now debian/rules doesn't have to be tweaked
if any Harbour files change name or location.
75 lines
1.5 KiB
Makefile
Executable File
75 lines
1.5 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# -*- makefile -*-
|
|
# Sample debian/rules that uses debhelper.
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE := 1
|
|
|
|
export HB_BIN_INSTALL := $(CURDIR)/debian/harbour/usr/bin
|
|
export HB_LIB_INSTALL := $(CURDIR)/debian/harbour/usr/lib/harbour
|
|
export HB_INC_INSTALL := $(CURDIR)/debian/harbour/usr/include/harbour
|
|
export HB_DOC_INSTALL := $(CURDIR)/debian/harbour/usr/share/doc/harbour
|
|
export HB_MAN_INSTALL := $(CURDIR)/debian/harbour/usr/share/man
|
|
export HB_ETC_INSTALL := $(CURDIR)/debian/harbour/etc/harbour
|
|
|
|
export HB_BUILD_PKG := no
|
|
export HB_BUILD_SHARED := yes
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
export HB_BUILD_OPTIM := no
|
|
endif
|
|
|
|
build: build-stamp
|
|
|
|
build-stamp:
|
|
dh_testdir
|
|
|
|
make
|
|
|
|
touch build-stamp
|
|
|
|
clean:
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-stamp configure-stamp
|
|
|
|
-make clean
|
|
|
|
dh_clean
|
|
|
|
install: build
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_clean -k
|
|
dh_installdirs
|
|
|
|
make install
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
binary-indep: build install
|
|
# We have nothing to do by default.
|
|
|
|
# Build architecture-dependent files here.
|
|
binary-arch: build install
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_installchangelogs
|
|
dh_installdocs
|
|
dh_installexamples
|
|
# dh_install
|
|
dh_installman
|
|
dh_link
|
|
dh_strip
|
|
dh_compress
|
|
dh_fixperms
|
|
# dh_makeshlibs
|
|
dh_installdeb
|
|
dh_shlibdeps
|
|
dh_gencontrol
|
|
dh_md5sums
|
|
dh_builddeb
|
|
|
|
binary: binary-indep binary-arch
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|