]> xenbits.xensource.com Git - unikraft/libs/lua.git/commitdiff
Prevent make from deleting archive headers.
authorFelipe Huici <felipe.huici@neclab.eu>
Wed, 16 Oct 2019 09:44:55 +0000 (11:44 +0200)
committerFelipe Huici <felipe.huici@neclab.eu>
Wed, 20 Nov 2019 08:59:57 +0000 (09:59 +0100)
Add a PRECIOUS target to make sure that make does not treat archive
headers as intermediate and ends up deleting them.

Signed-off-by: Felipe Huici
Reviewed-by: Roxana Nicolescu <nicolescu.roxana1996@gmail.com>
Makefile.uk

index 9251ff20553a7d2204b663a9587d5350b2f76bda..3c3d05a17789e8fda107be882378c185fb118b74 100644 (file)
@@ -93,6 +93,9 @@ LIBLUA_SRCS-y += $(LIBLUA_SRCS_BASE)/linit.c
 ################################################################################
 # Libray API headers
 ################################################################################
+# Make sure that make does not treat the headers from the archive as intermediate
+.PRECIOUS: $(LIBLUA_SRCS_BASE)/%.h
+
 $(LIBLUA_SRCS_BASE)/%.h: $(LIBLUA_BUILD)/.origin
        @# empty recipe to enforce dependency to archive extraction