mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 04:53:39 +02:00
debian: set defaults for FPC, LAZBUILD, FPCMAKE, let clean call configure
git-svn-id: trunk@15440 -
This commit is contained in:
parent
f1c95f1d34
commit
1ebd38a998
26
debian/rules
vendored
26
debian/rules
vendored
@ -3,28 +3,36 @@
|
||||
|
||||
DEB_DH_BUILDDEB_ARGS := -- -Z bzip2
|
||||
|
||||
# Define FPCDIR if it was not set
|
||||
ifndef FPCDIR
|
||||
export FPCDIR=/usr/share/fpcsrc
|
||||
endif
|
||||
# Get directories
|
||||
CURDIR:=$(shell pwd)
|
||||
BUILD_DIR=$(CURDIR)/debian/build
|
||||
INSTALL_DIR=$(CURDIR)/debian/tmp
|
||||
DOC_DIR=$(INSTALL_DIR)/usr/share/doc
|
||||
# Get utils
|
||||
FPC=/usr/bin/fpc
|
||||
# Create default options
|
||||
ifndef FPC
|
||||
export FPC=fpc
|
||||
endif
|
||||
ifndef LAZBUILD
|
||||
LAZBUILD=lazbuild
|
||||
endif
|
||||
BUILDOPTS=PP=$(FPC)
|
||||
INSTALLOPTS=INSTALL_PREFIX=$(INSTALL_DIR)/usr
|
||||
# Get fpcmake from path if none is specified.
|
||||
ifndef FPCMAKE
|
||||
FPCMAKE=fpcmake
|
||||
endif
|
||||
# Define FPCDIR if it was not set
|
||||
ifndef FPCDIR
|
||||
export FPCDIR=/usr/share/fpcsrc/$(shell ${FPC} -iV)
|
||||
endif
|
||||
|
||||
# export DH_VERBOSE=1
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
###################
|
||||
# Clean
|
||||
#
|
||||
|
||||
clean: clean-patched unpatch
|
||||
clean: configure clean-patched unpatch
|
||||
clean-patched:
|
||||
@echo "--- Cleaning"
|
||||
dh_testdir
|
||||
@ -69,7 +77,7 @@ configure-stamp:
|
||||
# Remove auto-generated make files.
|
||||
find -name Makefile.fpc -execdir 'sh' '-c' '${RM} $$(basename {} .fpc)' ';'
|
||||
# Regenrate make files using fpcmake.
|
||||
fpcmake -r -Tall
|
||||
${FPCMAKE} -r -Tall
|
||||
touch configure-stamp
|
||||
|
||||
build-arch: build-arch-stamp
|
||||
|
Loading…
Reference in New Issue
Block a user