summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2013-01-27 00:50:48 (GMT)
committermrwastl <mrwastl@users.sourceforge.net>2013-01-27 00:50:48 (GMT)
commit5b5bf594f026fbcba2e31b423b43a2e5e45fd471 (patch)
treebb1cfc63c0dcc530889c2e8631bc0b0cea7f8805
parent66b7843431223935589aab9d988f64f5423353d1 (diff)
downloadvdr-plugin-graphlcd-5b5bf594f026fbcba2e31b423b43a2e5e45fd471.tar.gz
vdr-plugin-graphlcd-5b5bf594f026fbcba2e31b423b43a2e5e45fd471.tar.bz2
ensure -fPIC for old vdr versions, minor enhancements for make docs / make uninstall
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7638848..f0321e8 100644
--- a/Makefile
+++ b/Makefile
@@ -83,6 +83,10 @@ $(shell [ $(APIVERSNUM) -gt 10733 ] && FLAG_NEWSTYLE=true)
# do some adaptions and defaults for old vdr versions
ifeq ($(FLAG_NEWSTYLE),false)
CXXFLAGS += $(call PKGCFG,plugincflags)
+ # ensure -fPIC
+ ifeq ($(findstring -fPIC,$(CXXFLAGS)),)
+ CXXFLAGS += -fPIC
+ endif
export CXXFLAGS
ifeq ($(LOCDIR),)
@@ -91,6 +95,7 @@ ifeq ($(FLAG_NEWSTYLE),false)
LOCDIR = $(TEMP_VDRDIR)/locale
endif
endif
+ # avoid relative locale path
ifeq ($(LOCDIR),./locale)
LOCDIR = $(TEMP_VDRDIR)/locale
endif
@@ -261,6 +266,7 @@ install: install-lib install-i18n resources $(INS_TARGET_TTF) $(INS_TARGET_DOCS)
docs:
@install -d $(DESTDIR)$(INSTALLDOCDIR)
+ @install -m 644 COPYING $(DESTDIR)$(INSTALLDOCDIR)
@install -m 644 README $(DESTDIR)$(INSTALLDOCDIR)
@install -m 644 HISTORY $(DESTDIR)$(INSTALLDOCDIR)
@@ -290,3 +296,6 @@ clean:
uninstall:
@-rm -rf $(DESTDIR)$(INSTALLDOCDIR)
@-rm -rf $(DESTDIR)$(RESDIR)
+ @-rm -f $(DESTDIR)$(LOCDIR)/*/LC_MESSAGES/vdr-$(PLUGIN).mo
+ @-rm -f $(DESTDIR)$(LIBDIR)/$(SOFILE).$(APIVERSION)
+