office-gobmx/readlicense_oo/makefile.mk
Tor Lillqvist 2a1171929e chmod -x
2012-03-21 13:00:45 +02:00

42 lines
1.3 KiB
Makefile

PRJ=.
PRJNAME=readlicense_oo
TARGET=source
# ------------------------------------------------------------------
.INCLUDE: settings.mk
# ------------------------------------------------------------------
# ------------------------------------------------------------------
.INCLUDE: target.mk
# ------------------------------------------------------------------
ALLTAR: $(MISC)/$/license.txt $(MISC)/$/LICENSE \
$(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 $@