summaryrefslogtreecommitdiff
path: root/readlicense_oo/makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'readlicense_oo/makefile.mk')
-rwxr-xr-xreadlicense_oo/makefile.mk25
1 files changed, 5 insertions, 20 deletions
diff --git a/readlicense_oo/makefile.mk b/readlicense_oo/makefile.mk
index 0b41cfff85..ee1facd61d 100755
--- a/readlicense_oo/makefile.mk
+++ b/readlicense_oo/makefile.mk
@@ -6,23 +6,11 @@ TARGET=source
.INCLUDE: settings.mk
# ------------------------------------------------------------------
-.IF "$(GUI)"=="WNT"
-SYSLICBASE=license.txt LICENSE.odt
-SYSLICDEST=$(MISC)$/license$/wnt
-.ELSE # "$(GUI)"=="WNT"
-SYSLICBASE=LICENSE LICENSE.odt
-SYSLICDEST=$(MISC)$/license$/unx
-.ENDIF # "$(GUI)"=="WNT"
-
-SOURCELICENCES=$(foreach,i,$(SYSLICBASE) $(SYSLICDEST)$/$(i:b)$(i:e))
-
-fallbacklicenses=$(foreach,i,{$(subst,$(defaultlangiso), $(alllangiso))} $(foreach,j,$(SYSLICBASE) $(SYSLICDEST)$/$(j:b)_$i$(j:e)))
-
# ------------------------------------------------------------------
.INCLUDE: target.mk
# ------------------------------------------------------------------
-ALLTAR: $(SOURCELICENCES) $(fallbacklicenses) just_for_nice_optics \
+ALLTAR: $(MISC)/$/license.txt $(MISC)/$/LICENSE \
$(MISC)$/LICENSE.odt $(MISC)$/CREDITS.odt \
$(MISC)$/THIRDPARTYLICENSEREADME.html
@@ -36,16 +24,13 @@ just_for_nice_optics: $(fallbacklicenses)
@$(ECHONL)
# for windows, convert linends to DOS
-$(SYSLICDEST)$/license.% : txt$/license.%
- @-$(MKDIRHIER) $(SYSLICDEST)
+$(MISC)$/license.txt : txt$/license.txt
$(PERL) -p -e 's/\r?\n$$/\r\n/' < $< > $@
-
# for others just copy
-$(SYSLICDEST)$/LICENSE : txt$/license.txt
- @-$(MKDIRHIER) $(SYSLICDEST)
+$(MISC)$/LICENSE : txt$/license.txt
$(COPY) $< $@
-$(SYSLICDEST)$/LICENSE.odt : odt$/LICENSE.odt
- @-$(MKDIRHIER) $(SYSLICDEST)
+
+$(MISC)$/SYSLICDEST)$/LICENSE.odt : odt$/LICENSE.odt
$(COPY) $< $@
# just copy into misc