1cdf0e10cSrcweirPRJ=. 2cdf0e10cSrcweirPRJNAME=readlicense_oo 3cdf0e10cSrcweirTARGET=source 4cdf0e10cSrcweir 5cdf0e10cSrcweir# ------------------------------------------------------------------ 6cdf0e10cSrcweir.INCLUDE: settings.mk 7cdf0e10cSrcweir# ------------------------------------------------------------------ 8cdf0e10cSrcweir 9cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 10cdf0e10cSrcweirSYSLICBASE=license.txt license.html license.rtf 11cdf0e10cSrcweirSYSLICDEST=$(MISC)$/license$/wnt 12*27ead02aSPedro Giffuni.ELIF "$(GUI)"=="OS2" 13*27ead02aSPedro GiffuniSYSLICBASE=license.txt license.html license.rtf 14*27ead02aSPedro GiffuniSYSLICDEST=$(MISC)$/license$/os2 15cdf0e10cSrcweir.ELSE # "$(GUI)"=="WNT" 16cdf0e10cSrcweirSYSLICBASE=LICENSE LICENSE.html 17cdf0e10cSrcweirSYSLICDEST=$(MISC)$/license$/unx 18cdf0e10cSrcweir.ENDIF # "$(GUI)"=="WNT" 19cdf0e10cSrcweir 20cdf0e10cSrcweirSOURCELICENCES=$(foreach,i,$(SYSLICBASE) $(SYSLICDEST)$/$(i:b)_en-US$(i:e)) 21cdf0e10cSrcweir 22cdf0e10cSrcweirfallbacklicenses=$(foreach,i,{$(subst,$(defaultlangiso), $(alllangiso))} $(foreach,j,$(SYSLICBASE) $(SYSLICDEST)$/$(j:b)_$i$(j:e))) 23cdf0e10cSrcweir 24cdf0e10cSrcweir# ------------------------------------------------------------------ 25cdf0e10cSrcweir.INCLUDE: target.mk 26cdf0e10cSrcweir# ------------------------------------------------------------------ 27cdf0e10cSrcweir 28cdf0e10cSrcweirALLTAR: $(SOURCELICENCES) $(fallbacklicenses) just_for_nice_optics 29cdf0e10cSrcweir 30cdf0e10cSrcweir.IF "$(fallbacklicenses)"!="" 31cdf0e10cSrcweir$(fallbacklicenses) : $(SOURCELICENCES) 32cdf0e10cSrcweir @$(ECHON) . 33cdf0e10cSrcweir @$(COPY) $(@:d)$(@:b:s/_/./:b)_$(defaultlangiso)$(@:e) $@ 34cdf0e10cSrcweir.ENDIF # "$(fallbacklicenses)"!="" 35cdf0e10cSrcweir 36cdf0e10cSrcweirjust_for_nice_optics: $(fallbacklicenses) 37cdf0e10cSrcweir @$(ECHONL) 38cdf0e10cSrcweir 39cdf0e10cSrcweir# for windows, convert linends to DOS 40cdf0e10cSrcweir$(SYSLICDEST)$/license_en-US.% : source$/license$/license_en-US.% 41cdf0e10cSrcweir @-$(MKDIRHIER) $(SYSLICDEST) 42cdf0e10cSrcweir $(PERL) -p -e 's/\r?\n$$/\r\n/' < $< > $@ 43cdf0e10cSrcweir 44cdf0e10cSrcweir# for others just copy 45cdf0e10cSrcweir$(SYSLICDEST)$/LICENSE_en-US : source$/license$/license_en-US.txt 46cdf0e10cSrcweir @-$(MKDIRHIER) $(SYSLICDEST) 47cdf0e10cSrcweir $(COPY) $< $@ 48cdf0e10cSrcweir 49cdf0e10cSrcweir$(SYSLICDEST)$/LICENSE_en-US.html : source$/license$/license_en-US.html 50cdf0e10cSrcweir @-$(MKDIRHIER) $(SYSLICDEST) 51cdf0e10cSrcweir $(COPY) $< $@ 52