fb78e6726c
2006/10/18 17:12:26 hjs 1.5.6.1: #i70359# remove forced shell calls
42 lines
1.2 KiB
Makefile
Executable file
42 lines
1.2 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) $@
|
|
.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)
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|