blob: dcbafb034babbc755cf30604c84dadb0ab4a9bc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
PRJ=.
PRJNAME=readlicense_oo
TARGET=source
# ------------------------------------------------------------------
.INCLUDE: settings.mk
# ------------------------------------------------------------------
.IF "$(GUI)"=="WNT"
SYSLICBASE=license.txt LICENSE.odt
SYSLICDEST=$(MISC)$/license$/wnt
.ELSE # "$(GUI)"=="WNT"
SYSLICBASE=LICENSE LICENSE.odt
SYSLICDEST=$(MISC)$/license$/unx
.ENDIF # "$(GUI)"=="WNT"
SOURCELICENCES=$(foreach,i,$(SYSLICBASE) $(SYSLICDEST)$/$(i:b)$(i:e))
fallbacklicenses=$(foreach,i,{$(subst,$(defaultlangiso), $(alllangiso))} $(foreach,j,$(SYSLICBASE) $(SYSLICDEST)$/$(j:b)_$i$(j:e)))
# ------------------------------------------------------------------
.INCLUDE: target.mk
# ------------------------------------------------------------------
ALLTAR: $(SOURCELICENCES) $(fallbacklicenses) just_for_nice_optics
.IF "$(fallbacklicenses)"!=""
$(fallbacklicenses) : $(SOURCELICENCES)
@$(ECHON) .
@$(COPY) $(@:d)$(@:b:s/_/./:b)_$(defaultlangiso)$(@:e) $@
.ENDIF # "$(fallbacklicenses)"!=""
just_for_nice_optics: $(fallbacklicenses)
@$(ECHONL)
# for windows, convert linends to DOS
$(SYSLICDEST)$/license.% : txt$/license.%
@-$(MKDIRHIER) $(SYSLICDEST)
$(PERL) -p -e 's/\r?\n$$/\r\n/' < $< > $@
# for others just copy
$(SYSLICDEST)$/LICENSE : txt$/license.txt
@-$(MKDIRHIER) $(SYSLICDEST)
$(COPY) $< $@
$(SYSLICDEST)$/LICENSE.odt : odt$/LICENSE.odt
@-$(MKDIRHIER) $(SYSLICDEST)
$(COPY) $< $@
# just copy into misc
$(MISC)$/LICENSE.odt: LICENSE.odt
$(COPY) LICENSE.odt $@
$(MISC)$/CREDITS.odt: CREDITS.odt
$(COPY) CREDITS.odt $@
$(MISC)$/THIRDPARTYLICENSEREADME.html: THIRDPARTYLICENSEREADME.html
$(COPY) THIRDPARTYLICENSEREADME.html $@
|