blob: 5cbb2234b3523be161715a5b07c679e0e2a655af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#
# Makefile for a Video Disk Recorder plugin + program
#
# dont remove the next line, its needed for the VDR Makefile
# $(LIBDIR)/$@.$(APIVERSION)
DIRS = command plugin
VERSION = $(shell grep 'static const char \*VERSION *=' version.h | awk '{ print $$6 }' | sed -e 's/[";]//g')
TMPDIR = /tmp
ARCHIVE = markad-$(VERSION)
PACKAGE = vdr-$(ARCHIVE)
all:
for i in $(DIRS); do $(MAKE) -C $$i; done
install:
for i in $(DIRS); do $(MAKE) -C $$i install; done
dist:
@-rm -rf $(TMPDIR)/$(ARCHIVE)
@mkdir $(TMPDIR)/$(ARCHIVE)
@mkdir $(TMPDIR)/$(ARCHIVE)/plugin
@mkdir $(TMPDIR)/$(ARCHIVE)/plugin/po
@mkdir $(TMPDIR)/$(ARCHIVE)/plugin/dist
@mkdir $(TMPDIR)/$(ARCHIVE)/command
@mkdir $(TMPDIR)/$(ARCHIVE)/command/po
@mkdir $(TMPDIR)/$(ARCHIVE)/command/logos
@cp -a plugin/*.cpp plugin/*.h plugin/Makefile $(TMPDIR)/$(ARCHIVE)/plugin
@cp -a plugin/dist/* $(TMPDIR)/$(ARCHIVE)/plugin/dist
@cp -a plugin/po/*.po $(TMPDIR)/$(ARCHIVE)/plugin/po
@cp -a command/*.cpp command/*.h command/Makefile $(TMPDIR)/$(ARCHIVE)/command
@cp -a command/logos/*.pgm $(TMPDIR)/$(ARCHIVE)/command/logos
@cp -a command/po/*.po $(TMPDIR)/$(ARCHIVE)/command/po
@cp -a *.h COPYING HISTORY README INSTALL Makefile $(TMPDIR)/$(ARCHIVE)
@tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE)
@-rm -rf $(TMPDIR)/$(ARCHIVE)
@echo Distribution package created as $(PACKAGE).tgz
clean:
for i in $(DIRS); do make -C $$i clean; done
@-rm -f $(PACKAGE).tgz
|