-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
64 lines (50 loc) · 2.11 KB
/
Makefile.in
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
#
# Makefile : Builds vscpl2drv-automation for Unix.
#
# Package version
MAJOR_VERSION=@MAJOR_VERSION@
MINOR_VERSION=@MINOR_VERSION@
RELEASE_VERSION=@RELEASE_VERSION@
BUILD_VERSION=@BUILD_VERSION@
PACKAGE_VERSION=@PACKAGE_VERSION@
STATIC=@STATIC@
VSCP_PROJ_BASE_DIR=@DESTDIR@
DESTDIR=@DESTDIR@
INSTALL = @INSTALL@
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_DIR = /usr/bin/install -c -d
PROJ_SUBDIRS=@PROJ_SUBDIRS@
VSCP_PROJ_BASE_DIR=@DESTDIR@
IPADDRESS := $(shell hostname -I)
all:
@for d in $(PROJ_SUBDIRS); do (echo "====================================================" &&\
echo "Building in dir " $$d && echo "====================================================" && cd $$d && $(MAKE)); done
install:
$(INSTALL_DIR) $(DESTDIR)/vscpd
$(INSTALL_PROGRAM) install-files/vscpl2drv-automation.conf $(DESTDIR)/vscpd
# Install sub components
@for d in $(PROJ_SUBDIRS); do (echo "====================================================" &&\
echo "Building in dir " $$d && echo "====================================================" && cd $$d && $(MAKE) install); done
uninstall:
rm $(DESTDIR)/vscpd/vscpl2drv-automation.conf
# Uninstall sub components
@for d in $(PROJ_SUBDIRS); do (echo "====================================================" &&\
echo "Building in dir " $$d && echo "====================================================" && cd $$d && $(MAKE) uninstall); done
man:
@for d in $(PROJ_SUBDIRS); do (echo "====================================================" &&\
echo "Building in dir " $$d && echo "====================================================" && cd $$d && $(MAKE) man); done
install-manpages:
@echo "- Installing man-pages."
cp man/(vscpl2drv-automation.1 /usr/share/man/man1/
mandb
clean:
@for d in $(PROJ_SUBDIRS); do (cd $$d && $(MAKE) clean); done
rm -f config.log
rm -f config.startup
rm -f config.status
distclean: clean
@sh clean_for_dist
deb:
@for d in $(PROJ_SUBDIRS); do (echo "====================================================" &&\
echo "Building deb in dir " $$d && echo "====================================================" && cd $$d && $(MAKE) deb ); done