office-gobmx/readlicense_oo/makefile.mk
Michael Meeks a88f54f53a ALv2 licensing compliance, and first test / re-based module pair.
Change-Id: If75d2daaac2c629028a76f55941345c1c565a69a
2012-06-04 18:21:57 +01:00

45 lines
1.4 KiB
Makefile

PRJ=.
PRJNAME=readlicense_oo
TARGET=source
# ------------------------------------------------------------------
.INCLUDE: settings.mk
# ------------------------------------------------------------------
# ------------------------------------------------------------------
.INCLUDE: target.mk
# ------------------------------------------------------------------
ALLTAR: $(MISC)/$/license.txt $(MISC)/$/LICENSE \
$(MISC)/$/NOTICE \
$(MISC)$/LICENSE.odt $(MISC)$/CREDITS.odt \
$(MISC)$/THIRDPARTYLICENSEREADME.html
.IF "$(fallbacklicenses)"!=""
$(fallbacklicenses) : $(SOURCELICENCES)
@$(ECHON) .
@$(COPY) $(@:d)$(@:b:s/_/./:b)_$(defaultlangiso)$(@:e) $@
.ENDIF # "$(fallbacklicenses)"!=""
just_for_nice_optics: $(fallbacklicenses)
@$(ECHONL)
# for windows, convert linends to DOS
$(MISC)$/license.txt : txt$/license.txt
$(PERL) -p -e 's/\r?\n$$/\r\n/' < $< > $@
# for others just copy
$(MISC)$/LICENSE : txt$/license.txt
$(COPY) $< $@
$(MISC)$/SYSLICDEST)$/LICENSE.odt : odt$/LICENSE.odt
$(COPY) $< $@
# just copy into misc
$(MISC)$/LICENSE.odt: odt/LICENSE.odt
$(COPY) odt/LICENSE.odt $@
$(MISC)$/CREDITS.odt: odt/CREDITS.odt
$(COPY) odt/CREDITS.odt $@
$(MISC)$/THIRDPARTYLICENSEREADME.html: html/THIRDPARTYLICENSEREADME.html
$(COPY) html/THIRDPARTYLICENSEREADME.html $@
$(MISC)$/NOTICE: txt/NOTICE
$(COPY) txt/NOTICE $@