Deliver.mk (b63233d8) Deliver.mk (f006f9b4)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 42 unchanged lines hidden (view full) ---

51$(call gb_Deliver_do_add,$(OUTDIR)/$(1),$(2),$(3))
52endif
53endif
54
55endef
56
57ifeq ($(strip $(gb_Deliver_GNUCOPY)),)
58define gb_Deliver__deliver
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 42 unchanged lines hidden (view full) ---

51$(call gb_Deliver_do_add,$(OUTDIR)/$(1),$(2),$(3))
52endif
53endif
54
55endef
56
57ifeq ($(strip $(gb_Deliver_GNUCOPY)),)
58define gb_Deliver__deliver
59mkdir -p $(dir $(2)) && $(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) cp -f $(1) $(2) && touch -r $(1) $(2)
59mkdir -p $(dir $(2)) && $(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) cp -R -P -f $(1) $(2) && touch -r $(1) $(2)
60endef
61else
62define gb_Deliver__deliver
60endef
61else
62define gb_Deliver__deliver
63mkdir -p $(dir $(2)) && $(gb_Deliver_GNUCOPY) $(if $(gb_Deliver_CLEARONDELIVER),--remove-destination) --force --preserve=timestamps $(1) $(2)
63mkdir -p $(dir $(2)) && $(gb_Deliver_GNUCOPY) $(if $(gb_Deliver_CLEARONDELIVER),--remove-destination) -R -P --force --preserve=timestamps $(1) $(2)
64endef
65endif
66
67define gb_Deliver_deliver
68$(if $(1),$(call gb_Deliver__deliver,$(1),$(2)),\
69 $(error gb_Deliver_deliver:\
70 file does not exist in solver, and cannot be delivered: $(2)))
71endef

--- 41 unchanged lines hidden ---
64endef
65endif
66
67define gb_Deliver_deliver
68$(if $(1),$(call gb_Deliver__deliver,$(1),$(2)),\
69 $(error gb_Deliver_deliver:\
70 file does not exist in solver, and cannot be delivered: $(2)))
71endef

--- 41 unchanged lines hidden ---