[fpc-pascal] fpcmake: setting names of zip files

Marc Santhoff M.Santhoff at t-online.de
Sun Aug 5 04:11:43 CEST 2007


Hi again,

how can the name of the files created by the targets "zipinstall" and
"zipsourceinstall" be influenced?

I've tried this way:

<Makefile.fpc>
[prerules]
pretest:
	echo $(ZIPNAME)
	echo $(ZIP_ZIPNAME)

[target]
programs=cnfdat2h5

[package]
name=cnfdat2h5
version=0.1

[compiler]
options=-B
targetdir=obj

[dist]
destdir=$(BASEDIR)/dist
#destdir=$(shell pwd)/dist

[default]
fpcdir=/home/marc/fpc/share/src/fpc-2.0.2

[zip]
zipname=MyZipName
</Makefile.fpc>

to no avail:

<console>
$ fpcmake
Processing Makefile.fpc
 freebsd-i386 requires: rtl
 freebsd-m68k requires: rtl
 freebsd-x86_64 requires: rtl
 Writing Makefile
$ gmake pretest
echo cnfdat2h5freebsd
cnfdat2h5freebsd
echo 

$ 
</console>

Running the zipinstall and zipsourceinstall targets give me files with
the unchanged standard name. The final goal would be to have a name
formed like

	$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz

for distribution.

How can it be done?

TIA,
Marc





More information about the fpc-pascal mailing list