office-gobmx/readlicense_oo/makefile.mk
Kurt Zenker 1df0b484cb INTEGRATION: CWS ause016 (1.3.124); FILE MERGED
2005/01/18 10:51:57 hjs 1.3.124.1: #i35263# avoid language specific lines in d.lst
2005-01-21 08:47:59 +00:00

42 lines
1.3 KiB
Makefile
Executable file

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"