-
Notifications
You must be signed in to change notification settings - Fork 6
/
GNUmakefile.orig
60 lines (47 loc) · 1.2 KB
/
GNUmakefile.orig
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
# For more options, use the src/GNUmakefile
# DESTDIR, if defined, comes from rpmbuild and is the directory for the
# temporary build.
# These are substituted by configure
#
MAKE=GMAKETYPE
PREFIX=PREFIXSUB
MANPREFIX=MANPREFIXSUB
all:
$(MAKE) -C src
clean:
$(MAKE) clean -C src
distclean:
$(MAKE) distclean -C src
test:
$(MAKE) test -C src
coverage:
$(MAKE) coverage -C src
releasetest:
$(MAKE) releasetest -C src
max:
$(MAKE) -C src max
install:
ifdef RPM_BUILD_ROOT
install -pd ${DESTDIR}${PREFIX}/bin
install -pm0755 src/spar ${DESTDIR}${PREFIX}/bin/spar
install -pd ${DESTDIR}$(MANPREFIX)/man1
install -pm0644 src/spar.1 ${DESTDIR}${MANPREFIX}/man1/spar.1
else
install -pd ${PREFIX}/bin
install -pm0755 src/spar ${PREFIX}/bin/spar
install -pd $(MANPREFIX)/man/man1
install -pm0644 src/spar.1 ${MANPREFIX}/man/man1/spar.1
endif
uninstall:
ifdef RPM_BUILD_ROOT
rm ${DESTDIR}${PREFIX}/bin/spar
rm ${DESTDIR}${MANPREFIX}/man1/spar.1
else
rm ${PREFIX}/bin/spar
rm ${MANPREFIX}/man/man1/spar.1
endif
help:
@echo "Try make, make install or make uninstall"
@echo "If you have the sources, there are more options"
@echo "in the src directory"
.PHONY: all clean distclean test max install uninstall help