blob: 7a7098d3c01a07016eaf74230f9b17e110d9c826 (
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
|
PRJ=.
PRJNAME=readlicense_oo
TARGET=source
# ------------------------------------------------------------------
.INCLUDE: settings.mk
# ------------------------------------------------------------------
.IF "$(GUI)"=="WNT"
SYSLICBASE=license.txt license.html license.rtf
SYSLICDEST=$(MISC)$/license$/wnt
.ELSE # "$(GUI)"=="WNT"
SYSLICBASE=LICENSE LICENSE.html
SYSLICDEST=$(MISC)$/license$/unx
.ENDIF # "$(GUI)"=="WNT"
fallbacklicenses=$(foreach,i,{$(subst,$(defaultlangiso), $(alllangiso))} $(foreach,j,$(SYSLICBASE) $(SYSLICDEST)$/$(j:b)_$i$(j:e)))
# ------------------------------------------------------------------
.INCLUDE: target.mk
# ------------------------------------------------------------------
ALLTAR: convert $(fallbacklicenses) just_for_nice_optics
.IF "$(fallbacklicenses)"!=""
$(fallbacklicenses) : convert
@+$(ECHON) .
@+$(COPY) $(@:d)$(@:b:s/_/./:b)_$(defaultlangiso)$(@:e) $@ $(noout)
.ENDIF # "$(fallbacklicenses)"!=""
just_for_nice_optics: $(fallbacklicenses)
@+$(ECHONL)
@+echo done.
convert:
@+echo converting license files
@+-$(PERL) conv.pl -o $(MISC)
# no conversion for *.rtf
.IF "$(GUI)"=="WNT"
@+$(COPY) source$/license$/wnt$/*.rtf $(SYSLICDEST) $(noout)
.ENDIF # "$(GUI)"=="WNT"
|