2000-10-27 10:54:07 -05:00
|
|
|
PRJ=.
|
2005-01-21 02:47:59 -06:00
|
|
|
PRJNAME=readlicense_oo
|
2000-10-27 10:54:07 -05:00
|
|
|
TARGET=source
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
.INCLUDE: settings.mk
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2005-01-21 02:47:59 -06:00
|
|
|
.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"
|
2000-10-27 10:54:07 -05:00
|
|
|
|
2005-01-21 02:47:59 -06:00
|
|
|
fallbacklicenses=$(foreach,i,{$(subst,$(defaultlangiso), $(alllangiso))} $(foreach,j,$(SYSLICBASE) $(SYSLICDEST)$/$(j:b)_$i$(j:e)))
|
2000-10-27 10:54:07 -05:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
.INCLUDE: target.mk
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2005-01-21 02:47:59 -06:00
|
|
|
ALLTAR: convert $(fallbacklicenses) just_for_nice_optics
|
|
|
|
|
|
|
|
.IF "$(fallbacklicenses)"!=""
|
|
|
|
$(fallbacklicenses) : convert
|
2007-01-25 05:20:08 -06:00
|
|
|
@$(ECHON) .
|
|
|
|
@$(COPY) $(@:d)$(@:b:s/_/./:b)_$(defaultlangiso)$(@:e) $@
|
2005-01-21 02:47:59 -06:00
|
|
|
.ENDIF # "$(fallbacklicenses)"!=""
|
|
|
|
|
|
|
|
just_for_nice_optics: $(fallbacklicenses)
|
2007-01-25 05:20:08 -06:00
|
|
|
@$(ECHONL)
|
2006-10-05 04:51:43 -05:00
|
|
|
@echo done.
|
2005-01-21 02:47:59 -06:00
|
|
|
|
|
|
|
convert:
|
2006-10-05 04:51:43 -05:00
|
|
|
@echo converting license files
|
2007-01-25 05:20:08 -06:00
|
|
|
@-$(PERL) conv.pl -o $(MISC)
|
2005-01-21 02:47:59 -06:00
|
|
|
# no conversion for *.rtf
|
|
|
|
.IF "$(GUI)"=="WNT"
|
2007-01-25 05:20:08 -06:00
|
|
|
@$(COPY) source$/license$/wnt$/*.rtf $(SYSLICDEST)
|
2005-01-21 02:47:59 -06:00
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
|
|
|
|