forked from ssinyagin/tp-spectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
74 lines (54 loc) · 1.94 KB
/
Makefile.am
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Copyright (C) 2010 Stanislav Sinyagin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# $Id$
# Stanislav Sinyagin <[email protected]>
#
# Torrus plugin Automake script
SUBST = @abs_top_builddir@/substvars.sh
noinst_SCRIPTS = substvars.sh
EXTRA_DIST = spectrumdevs.in
##### Perl modules #####
myperlmoddir = $(perllibdir)/Torrus/DevDiscover
dist_myperlmod_DATA = SpectrumDevices.pm
##### Perl configuration files #####
devdisccfgdir = $(plugdevdisccfgdir)
dist_devdisccfg_DATA = spectrum-ddcfg.pl
##### CLI wrapper #####
wrapperdir = $(plugwrapperdir)
dist_wrapper_DATA = spectrum-wrapper.sh
##### Executable scripts #####
pkgbindir = @pkgbindir@
pkgbin_SCRIPTS = spectrumdevs
spectrumdevs: spectrumdevs.in
$(SUBST) spectrumdevs.in > spectrumdevs
##### Documentation files #####
pkgdocdir = @pkgdocdir@
dist_pkgdoc_DATA = tp-spectrum.txt tp-spectrum.pod.in
SUFFIXES = .pod.in .pod .txt
.pod.in.pod:
$(SUBST) $< > $@
.pod.txt:
pod2text $< $@
##### What you do not need after "make clean" #####
CLEANFILES = $(pkgbin_SCRIPTS)
htdocs: tp-spectrum.pod
for f in *.pod; do \
pod2html -css=../torrusdoc.css $$f > ../../htdocs/plugins/$$f.html; \
done
UPLOADPATH = \
ssinyagin,[email protected]:/home/groups/t/to/torrus/htdocs/devel
upload: dist
scp $(distdir).tar.gz $(UPLOADPATH)