makefile.mk (d71964d5) | makefile.mk (ae258647) |
---|---|
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 --- 27 unchanged lines hidden (view full) --- 36SYSLICBASE=LICENSE LICENSE.html 37SYSLICDEST=$(MISC)$/license$/unx 38.ENDIF # "$(GUI)"=="WNT" 39 40SOURCELICENCES=$(foreach,i,$(SYSLICBASE) $(SYSLICDEST)$/$(i:b)_en-US$(i:e)) 41 42fallbacklicenses=$(foreach,i,{$(subst,$(defaultlangiso), $(alllangiso))} $(foreach,j,$(SYSLICBASE) $(SYSLICDEST)$/$(j:b)_$i$(j:e))) 43 | 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 --- 27 unchanged lines hidden (view full) --- 36SYSLICBASE=LICENSE LICENSE.html 37SYSLICDEST=$(MISC)$/license$/unx 38.ENDIF # "$(GUI)"=="WNT" 39 40SOURCELICENCES=$(foreach,i,$(SYSLICBASE) $(SYSLICDEST)$/$(i:b)_en-US$(i:e)) 41 42fallbacklicenses=$(foreach,i,{$(subst,$(defaultlangiso), $(alllangiso))} $(foreach,j,$(SYSLICBASE) $(SYSLICDEST)$/$(j:b)_$i$(j:e))) 43 |
44ALL_LICENSE=..$/LICENSE 45ALL_NOTICE=..$/NOTICE 46.IF "${ENABLE_CATEGORY_B}"=="YES" 47 # extend the install set's LICENSE and NOTICE files 48 # for content distributed under category-B licenses 49 ALL_LICENSE+=..$/LICENSE_category_b 50 ALL_NOTICE+=..$/NOTICE_category_b 51.ENDIF 52.IF "${BUNDLED_EXTENSION_BLOBS}"!="" 53 # extend the install set's LICENSE and NOTICE files 54 # for content distributed as mere aggregations 55 ALL_LICENSE+=..$/LICENSE_aggregated 56 ALL_NOTICE+=..$/NOTICE_aggregated 57.ENDIF 58SUM_LICENSE=$(MISC)$/SUM_LICENSE 59SUM_NOTICE=$(MISC)$/SUM_NOTICE 60 |
|
44# ------------------------------------------------------------------ 45.INCLUDE: target.mk 46# ------------------------------------------------------------------ 47 | 61# ------------------------------------------------------------------ 62.INCLUDE: target.mk 63# ------------------------------------------------------------------ 64 |
48ALLTAR: $(SOURCELICENCES) $(fallbacklicenses) just_for_nice_optics | 65ALLTAR: ${SUM_LICENSE} ${SUM_NOTICE} $(SOURCELICENCES) $(fallbacklicenses) just_for_nice_optics |
49 | 66 |
67${SUM_LICENSE} : ${ALL_LICENSE} 68 cat $< > $@ 69 70${SUM_NOTICE} : ${ALL_NOTICE} 71 cat $< > $@ 72 |
|
50.IF "$(fallbacklicenses)"!="" 51$(fallbacklicenses) : $(SOURCELICENCES) 52 @$(ECHON) . 53 @$(COPY) $(@:d)$(@:b:s/_/./:b)_$(defaultlangiso)$(@:e) $@ 54.ENDIF # "$(fallbacklicenses)"!="" 55 56just_for_nice_optics: $(fallbacklicenses) 57 @$(ECHONL) 58 | 73.IF "$(fallbacklicenses)"!="" 74$(fallbacklicenses) : $(SOURCELICENCES) 75 @$(ECHON) . 76 @$(COPY) $(@:d)$(@:b:s/_/./:b)_$(defaultlangiso)$(@:e) $@ 77.ENDIF # "$(fallbacklicenses)"!="" 78 79just_for_nice_optics: $(fallbacklicenses) 80 @$(ECHONL) 81 |
59# for windows, convert linends to DOS | 82# for windows, convert line ends to CR/LF |
60$(SYSLICDEST)$/license_en-US.% : source$/license$/license_en-US.% 61 @-$(MKDIRHIER) $(SYSLICDEST) 62 $(PERL) -p -e 's/\r?\n$$/\r\n/' < $< > $@ 63 64# for others just copy 65$(SYSLICDEST)$/LICENSE_en-US : source$/license$/license_en-US.txt 66 @-$(MKDIRHIER) $(SYSLICDEST) 67 $(COPY) $< $@ 68 69$(SYSLICDEST)$/LICENSE_en-US.html : source$/license$/license_en-US.html 70 @-$(MKDIRHIER) $(SYSLICDEST) 71 $(COPY) $< $@ | 83$(SYSLICDEST)$/license_en-US.% : source$/license$/license_en-US.% 84 @-$(MKDIRHIER) $(SYSLICDEST) 85 $(PERL) -p -e 's/\r?\n$$/\r\n/' < $< > $@ 86 87# for others just copy 88$(SYSLICDEST)$/LICENSE_en-US : source$/license$/license_en-US.txt 89 @-$(MKDIRHIER) $(SYSLICDEST) 90 $(COPY) $< $@ 91 92$(SYSLICDEST)$/LICENSE_en-US.html : source$/license$/license_en-US.html 93 @-$(MKDIRHIER) $(SYSLICDEST) 94 $(COPY) $< $@ |