summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-05-17 01:41:24 +0200
committerJasmin Jessich <jasmin@anw.at>2017-05-18 21:03:13 +0200
commitd69aef07c4606e66b2b5c6bc4a2a115c43ec58c7 (patch)
tree35ba1700d3d7ed8e59e3ac2254666cc33eb2610e /javascript
parent9ce0791bee17a904ee41801ebe8ca5518c1e3a7a (diff)
downloadvdr-plugin-live-d69aef07c4606e66b2b5c6bc4a2a115c43ec58c7.tar.gz
vdr-plugin-live-d69aef07c4606e66b2b5c6bc4a2a115c43ec58c7.tar.bz2
Makefile enhancements
- Speedup make by use of ":=" instead of "=". - Build "*.po" files only if a source file has been changed. - Make some targets PHONY. - Change subdir handling. - Build "*.po" and "*.mo" files only if it is required. - Install "*.mo" files and plugin "*.so" file only if they have been changed.
Diffstat (limited to 'javascript')
-rw-r--r--javascript/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/javascript/Makefile b/javascript/Makefile
index bca2426..08f0ad7 100644
--- a/javascript/Makefile
+++ b/javascript/Makefile
@@ -1,14 +1,15 @@
### The official name of this plugin.
-PLUGIN = live
+PLUGIN := live
### Additional options to silence TNTNET warnings
-TNTFLAGS ?= -Wno-overloaded-virtual -Wno-unused-function
+TNTFLAGS ?= -Wno-overloaded-virtual -Wno-unused-function
### Includes and Defines (add further entries here):
INCLUDES += -I$(VDRDIR)/include -I..
### The object files (add further files here):
-OBJS = treeview.o
+OBJS := treeview.o
+SRCS := $(patsubst %.o,%.cpp,$(OBJS))
### The main target:
all: libjavascript.a
@@ -25,7 +26,7 @@ libjavascript.a: $(OBJS)
$(AR) r $@ $^
clean:
- @rm -f *~ *.o core* libjavascript.a $(OBJS:%.o=%.cpp)
+ @rm -f *~ *.o core* libjavascript.a $(SRCS)
dist: clean
@echo "Nothing to do for distribution here ..."