Package.mk (7871dc3e) | Package.mk (3e9d7d56) |
---|---|
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 --- 52 unchanged lines hidden (view full) --- 61 62define gb_Package_add_file 63$(call gb_Package_get_target,$(1)) : $(OUTDIR)/$(2) 64$(call gb_Package_get_clean_target,$(1)) : FILES += $(OUTDIR)/$(2) 65$(call gb_PackagePart_PackagePart,$(2),$$(gb_Package_SOURCEDIR_$(1))/$(3),$(call gb_Package_get_preparation_target,$(1))) 66 67endef 68 | 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 --- 52 unchanged lines hidden (view full) --- 61 62define gb_Package_add_file 63$(call gb_Package_get_target,$(1)) : $(OUTDIR)/$(2) 64$(call gb_Package_get_clean_target,$(1)) : FILES += $(OUTDIR)/$(2) 65$(call gb_PackagePart_PackagePart,$(2),$$(gb_Package_SOURCEDIR_$(1))/$(3),$(call gb_Package_get_preparation_target,$(1))) 66 67endef 68 |
69# 70# Add multiple files $(3), which are located in directory $(2) to the package $(1). 71# 72define gb_Package_add_files 73$(foreach header,$(3), $(call gb_Package_add_file,$(strip $(1)),$(strip $(2))/$(header),$(header))) 74endef 75 |
|
69define gb_Package_add_customtarget 70$(call gb_Package_get_preparation_target,$(1)) : $(call gb_CustomTarget_get_target,$(2)) 71$(call gb_Package_get_clean_target,$(1)) : $(call gb_CustomTarget_get_clean_target,$(2)) 72$(call gb_CustomTarget_CustomTarget,$(2)) 73 74endef 75 76# vim: set noet sw=4 ts=4: | 76define gb_Package_add_customtarget 77$(call gb_Package_get_preparation_target,$(1)) : $(call gb_CustomTarget_get_target,$(2)) 78$(call gb_Package_get_clean_target,$(1)) : $(call gb_CustomTarget_get_clean_target,$(2)) 79$(call gb_CustomTarget_CustomTarget,$(2)) 80 81endef 82 83# vim: set noet sw=4 ts=4: |