mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
main Makefile: removed fakeroot, moving dsc, changes and tar.gz
git-svn-id: trunk@15521 -
This commit is contained in:
parent
4c0ed780bf
commit
12fd513cff
193
Makefile
193
Makefile
@ -1,8 +1,8 @@
|
||||
#
|
||||
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/06/19]
|
||||
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2008/06/07]
|
||||
#
|
||||
default: all
|
||||
MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded
|
||||
MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded
|
||||
BSDs = freebsd netbsd openbsd darwin
|
||||
UNIXs = linux $(BSDs) solaris qnx
|
||||
LIMIT83fs = go32v2 os2 emx watcom
|
||||
@ -166,17 +166,6 @@ OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
|
||||
endif
|
||||
FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
|
||||
FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
|
||||
ifeq ($(CPU_TARGET),armeb)
|
||||
ARCH=arm
|
||||
override FPCOPT+=-Cb
|
||||
else
|
||||
ifeq ($(CPU_TARGET),armel)
|
||||
ARCH=arm
|
||||
override FPCOPT+=-CaEABI
|
||||
else
|
||||
ARCH=$(CPU_TARGET)
|
||||
endif
|
||||
endif
|
||||
ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
|
||||
TARGETSUFFIX=$(OS_TARGET)
|
||||
SOURCESUFFIX=$(OS_SOURCE)
|
||||
@ -184,9 +173,15 @@ else
|
||||
TARGETSUFFIX=$(FULL_TARGET)
|
||||
SOURCESUFFIX=$(FULL_SOURCE)
|
||||
endif
|
||||
ifeq ($(OS_TARGET),darwin)
|
||||
ifneq ($(OS_SOURCE),darwin)
|
||||
CROSSCOMPILE=1
|
||||
endif
|
||||
else
|
||||
ifneq ($(FULL_TARGET),$(FULL_SOURCE))
|
||||
CROSSCOMPILE=1
|
||||
endif
|
||||
endif
|
||||
ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
|
||||
ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
|
||||
$(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
|
||||
@ -198,7 +193,7 @@ endif
|
||||
ifeq ($(OS_TARGET),linux)
|
||||
linuxHier=1
|
||||
endif
|
||||
export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
|
||||
export OS_TARGET OS_SOURCE CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
|
||||
ifdef FPCDIR
|
||||
override FPCDIR:=$(subst \,/,$(FPCDIR))
|
||||
ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
|
||||
@ -238,20 +233,13 @@ endif
|
||||
ifndef CROSSBINDIR
|
||||
CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
|
||||
endif
|
||||
ifeq ($(OS_TARGET),darwin)
|
||||
ifeq ($(OS_SOURCE),darwin)
|
||||
DARWIN2DARWIN=1
|
||||
endif
|
||||
endif
|
||||
ifndef BINUTILSPREFIX
|
||||
ifndef CROSSBINDIR
|
||||
ifdef CROSSCOMPILE
|
||||
ifndef DARWIN2DARWIN
|
||||
BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
|
||||
ifeq ($(UNITSDIR),)
|
||||
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
||||
@ -286,9 +274,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),i386-beos)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-haiku)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
@ -406,9 +391,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),arm-palmos)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-darwin)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-wince)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
@ -433,15 +415,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),avr-embedded)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-linux)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-embedded)
|
||||
override TARGET_DIRS+=lcl components packager/registration ideintf designer packager
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
@ -460,9 +433,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),i386-beos)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-haiku)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
@ -580,9 +550,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),arm-palmos)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-darwin)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-wince)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
@ -607,15 +574,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),avr-embedded)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-linux)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-embedded)
|
||||
override TARGET_PROGRAMS+=lazarus startlazarus
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
@ -634,9 +592,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),i386-beos)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-haiku)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
@ -754,9 +709,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),arm-palmos)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-darwin)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-wince)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
@ -781,15 +733,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),avr-embedded)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-linux)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-embedded)
|
||||
override TARGET_EXAMPLEDIRS+=examples
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-linux)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
@ -808,9 +751,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),i386-beos)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-haiku)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
@ -928,9 +868,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),arm-palmos)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-darwin)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-wince)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
@ -955,15 +892,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),avr-embedded)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-linux)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-embedded)
|
||||
override CLEAN_FILES+=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
|
||||
endif
|
||||
override INSTALL_BASEDIR=share/lazarus
|
||||
override INSTALL_FPCPACKAGE=n
|
||||
override DIST_DESTDIR=$(BASEDIR)/dist
|
||||
@ -1256,11 +1184,6 @@ BATCHEXT=.sh
|
||||
EXEEXT=
|
||||
SHORTSUFFIX=be
|
||||
endif
|
||||
ifeq ($(OS_TARGET),haiku)
|
||||
BATCHEXT=.sh
|
||||
EXEEXT=
|
||||
SHORTSUFFIX=hai
|
||||
endif
|
||||
ifeq ($(OS_TARGET),solaris)
|
||||
BATCHEXT=.sh
|
||||
EXEEXT=
|
||||
@ -1744,10 +1667,6 @@ ifeq ($(FULL_TARGET),i386-beos)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-haiku)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
@ -1904,10 +1823,6 @@ ifeq ($(FULL_TARGET),arm-palmos)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-darwin)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-wince)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
@ -1940,18 +1855,6 @@ ifeq ($(FULL_TARGET),powerpc64-embedded)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),avr-embedded)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-linux)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-embedded)
|
||||
REQUIRE_PACKAGES_RTL=1
|
||||
REQUIRE_PACKAGES_REGEXPR=1
|
||||
endif
|
||||
ifdef REQUIRE_PACKAGES_RTL
|
||||
PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
|
||||
ifneq ($(PACKAGEDIR_RTL),)
|
||||
@ -2005,13 +1908,13 @@ override COMPILER_UNITDIR+=$(UNITDIR_REGEXPR)
|
||||
endif
|
||||
endif
|
||||
ifndef NOCPUDEF
|
||||
override FPCOPTDEF=$(ARCH)
|
||||
override FPCOPTDEF=$(CPU_TARGET)
|
||||
endif
|
||||
ifneq ($(OS_TARGET),$(OS_SOURCE))
|
||||
override FPCOPT+=-T$(OS_TARGET)
|
||||
endif
|
||||
ifneq ($(CPU_TARGET),$(CPU_SOURCE))
|
||||
override FPCOPT+=-P$(ARCH)
|
||||
override FPCOPT+=-P$(CPU_TARGET)
|
||||
endif
|
||||
ifeq ($(OS_SOURCE),openbsd)
|
||||
override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
|
||||
@ -2647,14 +2550,6 @@ TARGET_DIRS_IDEINTF=1
|
||||
TARGET_DIRS_DESIGNER=1
|
||||
TARGET_DIRS_PACKAGER=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-haiku)
|
||||
TARGET_DIRS_LCL=1
|
||||
TARGET_DIRS_COMPONENTS=1
|
||||
TARGET_DIRS_PACKAGER/REGISTRATION=1
|
||||
TARGET_DIRS_IDEINTF=1
|
||||
TARGET_DIRS_DESIGNER=1
|
||||
TARGET_DIRS_PACKAGER=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
TARGET_DIRS_LCL=1
|
||||
TARGET_DIRS_COMPONENTS=1
|
||||
@ -2967,14 +2862,6 @@ TARGET_DIRS_IDEINTF=1
|
||||
TARGET_DIRS_DESIGNER=1
|
||||
TARGET_DIRS_PACKAGER=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-darwin)
|
||||
TARGET_DIRS_LCL=1
|
||||
TARGET_DIRS_COMPONENTS=1
|
||||
TARGET_DIRS_PACKAGER/REGISTRATION=1
|
||||
TARGET_DIRS_IDEINTF=1
|
||||
TARGET_DIRS_DESIGNER=1
|
||||
TARGET_DIRS_PACKAGER=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-wince)
|
||||
TARGET_DIRS_LCL=1
|
||||
TARGET_DIRS_COMPONENTS=1
|
||||
@ -3039,30 +2926,6 @@ TARGET_DIRS_IDEINTF=1
|
||||
TARGET_DIRS_DESIGNER=1
|
||||
TARGET_DIRS_PACKAGER=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),avr-embedded)
|
||||
TARGET_DIRS_LCL=1
|
||||
TARGET_DIRS_COMPONENTS=1
|
||||
TARGET_DIRS_PACKAGER/REGISTRATION=1
|
||||
TARGET_DIRS_IDEINTF=1
|
||||
TARGET_DIRS_DESIGNER=1
|
||||
TARGET_DIRS_PACKAGER=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-linux)
|
||||
TARGET_DIRS_LCL=1
|
||||
TARGET_DIRS_COMPONENTS=1
|
||||
TARGET_DIRS_PACKAGER/REGISTRATION=1
|
||||
TARGET_DIRS_IDEINTF=1
|
||||
TARGET_DIRS_DESIGNER=1
|
||||
TARGET_DIRS_PACKAGER=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-embedded)
|
||||
TARGET_DIRS_LCL=1
|
||||
TARGET_DIRS_COMPONENTS=1
|
||||
TARGET_DIRS_PACKAGER/REGISTRATION=1
|
||||
TARGET_DIRS_IDEINTF=1
|
||||
TARGET_DIRS_DESIGNER=1
|
||||
TARGET_DIRS_PACKAGER=1
|
||||
endif
|
||||
ifdef TARGET_DIRS_LCL
|
||||
lcl_all:
|
||||
$(MAKE) -C lcl all
|
||||
@ -3351,9 +3214,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),i386-beos)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-haiku)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),i386-netbsd)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
@ -3471,9 +3331,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),arm-palmos)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-darwin)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),arm-wince)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
@ -3498,15 +3355,6 @@ endif
|
||||
ifeq ($(FULL_TARGET),powerpc64-embedded)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),avr-embedded)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-linux)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifeq ($(FULL_TARGET),armeb-embedded)
|
||||
TARGET_EXAMPLEDIRS_EXAMPLES=1
|
||||
endif
|
||||
ifdef TARGET_EXAMPLEDIRS_EXAMPLES
|
||||
examples_all:
|
||||
$(MAKE) -C examples all
|
||||
@ -3650,8 +3498,8 @@ DEBFPCVERSION:=$(shell echo $(DEBPACKAGEVERSION) | awk -F '-' '{ print $$1 }')
|
||||
DEBSRCDIR:=$(BUILDDIR)/lazarus-$(DEBFPCVERSION)
|
||||
debcheck:
|
||||
ifneq ($(DEBFPCVERSION),$(PACKAGE_VERSION))
|
||||
@$(ECHO) "Debian version ($(DEBFPCVERSION)) is not correct, expect $(PACKAGE_VERSION)"
|
||||
@exit 1
|
||||
@$(ECHO) "Debian version ($(DEBFPCVERSION)) is not correct, expect $(PACKAGE_VERSION)"
|
||||
@exit 1
|
||||
endif
|
||||
debcopy: distclean
|
||||
rm -rf ${BUILDDIR}
|
||||
@ -3670,11 +3518,11 @@ debcopy: distclean
|
||||
ifndef NODOCS
|
||||
$(LINKTREE) docs $(DEBSRCDIR)
|
||||
endif
|
||||
$(LINKTREE) install $(DEBSRCDIR)
|
||||
$(LINKTREE) examples $(DEBSRCDIR)
|
||||
$(LINKTREE) ide $(DEBSRCDIR)
|
||||
$(LINKTREE) ideintf $(DEBSRCDIR)
|
||||
$(LINKTREE) images $(DEBSRCDIR)
|
||||
$(LINKTREE) install $(DEBSRCDIR)
|
||||
$(LINKTREE) languages $(DEBSRCDIR)
|
||||
$(LINKTREE) lazarus.app $(DEBSRCDIR)
|
||||
$(LINKTREE) lcl $(DEBSRCDIR)
|
||||
@ -3682,20 +3530,19 @@ endif
|
||||
$(LINKTREE) test $(DEBSRCDIR)
|
||||
$(LINKTREE) tools $(DEBSRCDIR)
|
||||
echo "const RevisionStr = '${SVNVERSION}';" > $(DEBSRCDIR)/ide/revision.inc
|
||||
find $(DEBSRCDIR) -name 'CVS*' | xargs rm -rf
|
||||
find $(DEBSRCDIR) -name '.svn' | xargs rm -rf
|
||||
find $(DEBSRCDIR) -name 'Makefile' | xargs rm -rf
|
||||
find $(DEBSRCDIR) -name 'CVS*' | xargs -n1 rm -rf
|
||||
find $(DEBSRCDIR) -name '.svn' | xargs -n1 rm -rf
|
||||
chmod 755 $(DEBSRCDIR)/debian/rules
|
||||
debbuild:
|
||||
ifdef NODOCS
|
||||
cd $(DEBSRCDIR) ; fakeroot debian/rules binary-arch
|
||||
cd $(DEBSRCDIR) ; dpkg-buildpackage -us -uc -B
|
||||
else
|
||||
cd $(DEBSRCDIR) ; fakeroot debian/rules binary
|
||||
cd $(DEBSRCDIR) ; dpkg-buildpackage -us -uc
|
||||
endif
|
||||
mv $(DEBSRCDIR)/../*.deb .
|
||||
mv -v -t . $(DEBSRCDIR)/../*.{deb,dsc,changes,tar.gz}
|
||||
debclean:
|
||||
rm -rf $(DEBSRCDIR)
|
||||
-rmdir $(BUILDDIR)
|
||||
rmdir $(BUILDDIR)
|
||||
deb: debcheck debcopy debbuild debclean
|
||||
endif # changelog found
|
||||
endif
|
||||
|
19
Makefile.fpc
19
Makefile.fpc
@ -171,8 +171,8 @@ DEBSRCDIR:=$(BUILDDIR)/lazarus-$(DEBFPCVERSION)
|
||||
|
||||
debcheck:
|
||||
ifneq ($(DEBFPCVERSION),$(PACKAGE_VERSION))
|
||||
@$(ECHO) "Debian version ($(DEBFPCVERSION)) is not correct, expect $(PACKAGE_VERSION)"
|
||||
@exit 1
|
||||
@$(ECHO) "Debian version ($(DEBFPCVERSION)) is not correct, expect $(PACKAGE_VERSION)"
|
||||
@exit 1
|
||||
endif
|
||||
|
||||
debcopy: distclean
|
||||
@ -192,11 +192,11 @@ debcopy: distclean
|
||||
ifndef NODOCS
|
||||
$(LINKTREE) docs $(DEBSRCDIR)
|
||||
endif
|
||||
$(LINKTREE) install $(DEBSRCDIR)
|
||||
$(LINKTREE) examples $(DEBSRCDIR)
|
||||
$(LINKTREE) ide $(DEBSRCDIR)
|
||||
$(LINKTREE) ideintf $(DEBSRCDIR)
|
||||
$(LINKTREE) images $(DEBSRCDIR)
|
||||
$(LINKTREE) install $(DEBSRCDIR)
|
||||
$(LINKTREE) languages $(DEBSRCDIR)
|
||||
$(LINKTREE) lazarus.app $(DEBSRCDIR)
|
||||
$(LINKTREE) lcl $(DEBSRCDIR)
|
||||
@ -205,22 +205,21 @@ endif
|
||||
$(LINKTREE) tools $(DEBSRCDIR)
|
||||
# add ide/revision.inc
|
||||
echo "const RevisionStr = '${SVNVERSION}';" > $(DEBSRCDIR)/ide/revision.inc
|
||||
find $(DEBSRCDIR) -name 'CVS*' | xargs rm -rf
|
||||
find $(DEBSRCDIR) -name '.svn' | xargs rm -rf
|
||||
find $(DEBSRCDIR) -name 'Makefile' | xargs rm -rf
|
||||
find $(DEBSRCDIR) -name 'CVS*' | xargs -n1 rm -rf
|
||||
find $(DEBSRCDIR) -name '.svn' | xargs -n1 rm -rf
|
||||
chmod 755 $(DEBSRCDIR)/debian/rules
|
||||
|
||||
debbuild:
|
||||
ifdef NODOCS
|
||||
cd $(DEBSRCDIR) ; fakeroot debian/rules binary-arch
|
||||
cd $(DEBSRCDIR) ; dpkg-buildpackage -us -uc -B
|
||||
else
|
||||
cd $(DEBSRCDIR) ; fakeroot debian/rules binary
|
||||
cd $(DEBSRCDIR) ; dpkg-buildpackage -us -uc
|
||||
endif
|
||||
mv $(DEBSRCDIR)/../*.deb .
|
||||
mv -v -t . $(DEBSRCDIR)/../*.{deb,dsc,changes,tar.gz}
|
||||
|
||||
debclean:
|
||||
rm -rf $(DEBSRCDIR)
|
||||
-rmdir $(BUILDDIR)
|
||||
rmdir $(BUILDDIR)
|
||||
|
||||
deb: debcheck debcopy debbuild debclean
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user