Fix make[1]: *** No rule to make target '.header', needed by 'context'. Stop.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-09-24 18:05:39 +08:00 committed by Xiang Xiao
parent 3f1417ef8d
commit b172de378d

View file

@ -50,7 +50,12 @@ distclean::
$(call DELDIR, $(MINMEA_UNPACKNAME))
$(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM))
else
context:: .header
context::
$(Q) mkdir -p $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM)
$(Q) cp gpsutils/minmea/minmea.h $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM)
distclean::
$(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)minmea$(DELIM))
endif
DEPPATH += --dep-path gpsutils/minmea