summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2013-01-06 14:47:49 +0100
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2013-01-06 14:47:49 +0100
commit0c2cc67775565d348ae31faa71d2d1b70dc95bb0 (patch)
treeca0c122c89511b467e3ccf295cb05cfd84a8a853
parentfbaad72d3b4f65b2b06d965d060f87fd17ac6411 (diff)
downloadvdr-plugin-inputdev-0c2cc67775565d348ae31faa71d2d1b70dc95bb0.tar.gz
vdr-plugin-inputdev-0c2cc67775565d348ae31faa71d2d1b70dc95bb0.tar.bz2
makefile: use install to copy files
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 383a76e..b53ddb3 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,9 @@ MSGMERGE ?= msgmerge
XGETTEXT ?= xgettext
PKG_CONFIG ?= pkg-config
+INSTALL ?= install
+INSTALL_DATA ?= $(INSTALL) -p -m 0644
+
SYSTEMD_CFLAGS = $(shell ${PKG_CONFIG} --cflags libsystemd-daemon || echo "libsystemd_missing")
SYSTEMD_LIBS = $(shell ${PKG_CONFIG} --libs libsystemd-daemon || echo "libsystemd_missing")
@@ -128,8 +131,7 @@ $(I18Npot): $(wildcard *.c *.cc)
@touch $@
$(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
- @mkdir -p $(dir $@)
- cp $< $@
+ $(INSTALL_DATA) -D $< $@
.PHONY: i18n
i18n: $(I18Nmsgs) $(I18Npot)