mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-22 17:34:19 +03:00
slightly amend how user config is included
This commit is contained in:
parent
b72b9d1f1f
commit
f8cdbbce19
5
Makefile
5
Makefile
@ -505,9 +505,12 @@ CXXWARNFLAGS :=
|
||||
# C default warning flags
|
||||
CWARNFLAGS := -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
|
||||
|
||||
# Pull in the configuration
|
||||
# Pull in the default configuration
|
||||
include Makefile.defaults
|
||||
|
||||
# Pull in the user configuration
|
||||
-include Makefile.config
|
||||
|
||||
# libraries enabled by feature switch without pkgconfig file
|
||||
$(eval $(call feature_switch,JPEG,JPEG (libjpeg),-DWITH_JPEG,-ljpeg,-UWITH_JPEG,))
|
||||
$(eval $(call feature_switch,HARU_PDF,PDF export (haru),-DWITH_PDF_EXPORT,-lhpdf -lpng,-UWITH_PDF_EXPORT,))
|
||||
|
@ -136,11 +136,9 @@ endif
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Include any local configuration
|
||||
# Detect double inclusion
|
||||
# ----------------------------------------------------------------------------
|
||||
ifneq ($(MAKEFILE_DEFAULTS_FINISHED),)
|
||||
$(error Makefile.defaults has been double-included. If you did something utterly brain-dead such as copying Makefile.defaults to Makefile.config then you deserve all the pain you can imagine. Do NOT do that. Why not read the comments at the top of Makefile.defaults. They are there to help you, you numpty)
|
||||
endif
|
||||
MAKEFILE_DEFAULTS_FINISHED=yes
|
||||
-include Makefile.config
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user