-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile
60 lines (50 loc) · 1.83 KB
/
Makefile
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
#####################################################################################
# Copyright 2015 Normation SAS
#####################################################################################
#
# 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, Version 3.
#
# 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, see <http://www.gnu.org/licenses/>.
#
#####################################################################################
DESTDIR = /usr
INSTALL := $(shell type ginstall >/dev/null 2>&1 && echo ginstall || echo install)
CP_A := cp -rp
all: install
# no dependency
depend: localdepends
localdepends:
# Install ncf in DESTDIR
install:
mkdir -p $(DESTDIR)/share/ncf
$(CP_A) tree $(DESTDIR)/share/ncf/
$(INSTALL) -m 755 ncf $(DESTDIR)/share/ncf/
test:
cd tests/acceptance/ && ./testall --printlog --info
test-unsafe:
cd tests/acceptance/ && ./testall --printlog --info --unsafe
clean:
rm -rf tests/style/.succeeded
rm -f tests/style/summary.log
rm -f tests/style/test.log
rm -f tests/style/test.xml
rm -f tests/style/xml.tmp
rm -rf tests/style/workdir/
rm -rf tests/unit/test.log
rm -rf tests/acceptance/.succeeded
rm -f tests/acceptance/summary.log
rm -f tests/acceptance/test.log
rm -f tests/acceptance/test.xml
rm -f tests/acceptance/xml.tmp
rm -rf tests/acceptance/workdir/
find $(CURDIR) -name "*.[pP][yY][cC]" -exec rm "{}" \;
distclean: clean
.PHONY: all test clean distclean depend localdepend install