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"
|
2010-12-08 12:49:38 -06:00
|
|
|
SYSLICBASE=license.txt LICENSE.odt
|
2005-01-21 02:47:59 -06:00
|
|
|
SYSLICDEST=$(MISC)$/license$/wnt
|
|
|
|
.ELSE # "$(GUI)"=="WNT"
|
2010-12-08 12:49:38 -06:00
|
|
|
SYSLICBASE=LICENSE LICENSE.odt
|
2005-01-21 02:47:59 -06:00
|
|
|
SYSLICDEST=$(MISC)$/license$/unx
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
2000-10-27 10:54:07 -05:00
|
|
|
|
2010-12-08 12:49:38 -06:00
|
|
|
SOURCELICENCES=$(foreach,i,$(SYSLICBASE) $(SYSLICDEST)$/$(i:b)$(i:e))
|
2009-01-20 04:06:44 -06: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
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2009-01-20 04:06:44 -06:00
|
|
|
ALLTAR: $(SOURCELICENCES) $(fallbacklicenses) just_for_nice_optics
|
2005-01-21 02:47:59 -06:00
|
|
|
|
|
|
|
.IF "$(fallbacklicenses)"!=""
|
2009-01-20 04:06:44 -06:00
|
|
|
$(fallbacklicenses) : $(SOURCELICENCES)
|
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)
|
2005-01-21 02:47:59 -06:00
|
|
|
|
2009-01-20 04:06:44 -06:00
|
|
|
# for windows, convert linends to DOS
|
2010-12-08 12:49:38 -06:00
|
|
|
$(SYSLICDEST)$/license.% : txt$/license.%
|
2009-01-21 11:51:39 -06:00
|
|
|
@-$(MKDIRHIER) $(SYSLICDEST)
|
2009-01-20 04:06:44 -06:00
|
|
|
$(PERL) -p -e 's/\r?\n$$/\r\n/' < $< > $@
|
|
|
|
|
|
|
|
# for others just copy
|
2010-12-08 12:49:38 -06:00
|
|
|
$(SYSLICDEST)$/LICENSE : txt$/license.txt
|
2009-01-21 11:51:39 -06:00
|
|
|
@-$(MKDIRHIER) $(SYSLICDEST)
|
2009-01-20 04:06:44 -06:00
|
|
|
$(COPY) $< $@
|
2010-12-08 12:49:38 -06:00
|
|
|
$(SYSLICDEST)$/LICENSE.odt : odt$/LICENSE.odt
|
2009-01-21 11:51:39 -06:00
|
|
|
@-$(MKDIRHIER) $(SYSLICDEST)
|
2009-01-20 04:06:44 -06:00
|
|
|
$(COPY) $< $@
|
2010-09-24 06:33:29 -05:00
|
|
|
|
2010-12-08 12:49:38 -06:00
|
|
|
# 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 $@
|