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

Peter Vreman peter at freepascal.org
Wed Aug 8 07:59:33 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?

The variable FULLZIPNAME can be set for this.

See the generated Makefile how the variables are set and which default values are taken.


Peter






More information about the fpc-pascal mailing list