Fossil SCM

Check-in [8fe33aa575] removed 'config.mak' for customization of make

Closed

cbda8d3bb0704c6… · opened 16 years, 1 month ago

Type
Code_Defect
Priority
Severity
Resolution
Rejected
Subsystem
Created
Feb. 23, 2010 4:29 p.m.

As mentioned. Removal of 'config.mak' means adding or overriding make flags requires actually modification of the Makefile


drh added on 2010-03-01 00:45:48:
Makefile customization is easy. Simply copy the default "Makefile" into a file named "makefile" or possibly "GNUMakefile" or "BSDMakefile" (depending on what version of make you are running) and then apply your edits to the copy. The "make" program looks for its makefile under name (GNU|BSD)Makefile, makefile, and Makefile, in that order. So if you supply one of the earlier names, the one included with the Fossil distribution will not be used.

You could also make a copy of the file into "local.mk" and then do "make -f local.mk".


ron added on 2010-03-01 06:26:10:
I dislike that solution because then the private build may break whenever the main makefile is updated.

That is why I added a "make.sh" script, which simply drives the make, giving the functionality of the (removed) config.mak without messing around with the Makefile. It is also cross-platform, working wherever "bash" is installed (maybe it works with other shells too, but I don't know).

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button