mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Added make include of Makefile.local
Added Makefile.local, a file with a single comment. The main Makefile includes Makefile.local just before the first all rule. One may overtide any Makefile setting by modifying Makefile.local. For example, Makefile.local could force BLD_TYPE: HAVE_STRING_H:= YES HAVE_TIMES_H:= YES SED:= /usr/local/bin/nsed Added ${LOC_MKF} to specify the make of the file that is included just before the all file. So one could place the above override lines into a different file and call make changing the ${LOC_MKF} value. For example: make LOC_MKF=Makefile.private clobber all chk
This commit is contained in:
@@ -31,7 +31,7 @@ Installing calc from the bzip2-ed tarball in 4 easy steps:
|
||||
|
||||
(1) Look at the makefile, and adjust it to suit your needs.
|
||||
|
||||
The top level Makefile and the custom/Makefile require a GNU
|
||||
The top level Makefile and the custom/Makefile require a modern
|
||||
Make (such as gmake) or an equivalently advanced make. On many
|
||||
targets, the default make is sufficient. On FreeBSD for example,
|
||||
one must use gmake instead of make.
|
||||
@@ -46,8 +46,8 @@ Installing calc from the bzip2-ed tarball in 4 easy steps:
|
||||
make target=Darwin chk
|
||||
make target=Darwin install
|
||||
|
||||
If your target system does not have GNU Make (or equivalent), then
|
||||
you should try using the Makefile.simple and custom/Makefile.simple
|
||||
If your target system does not have a moderm Makefile (such as gmake),
|
||||
then you should try using the Makefile.simple and custom/Makefile.simple
|
||||
files:
|
||||
|
||||
mv Makefile Makefile.gmake
|
||||
@@ -60,6 +60,14 @@ Installing calc from the bzip2-ed tarball in 4 easy steps:
|
||||
values should work. If in doubt, follow the 'When in doubt'
|
||||
suggestion.
|
||||
|
||||
If you are using a modern make (such as gmake), you may override
|
||||
any values set in the Mkefile by adding them to Makefile.local
|
||||
using the := directive. For example:
|
||||
|
||||
HAVE_STRING_H:= YES
|
||||
HAVE_TIMES_H:= YES
|
||||
SED:= /usr/local/bin/nsed
|
||||
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
! If you are building under Windoz or a Windoz-like environment !
|
||||
! (such as Cygwin or DJGPP), read the README.WINDOWS file. !
|
||||
|
Reference in New Issue
Block a user