-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (38 loc) · 1.45 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
#-------------------------------------------------------------------------------
# These are used internally by debuild. "build" should be first.
build:
clean:
install:
# if using debuild, then $(DESTDIR) makefile variable will be set
install -D -o root -g root -m 0755 src/flashback $(DESTDIR)/usr/sbin/flashback
for f in $(shell cd examples ; ls -1) ; do \
install -D -o root -g root -m 0644 examples/$$f $(DESTDIR)/usr/share/doc/flashback/examples/$$f ; \
done
# for non-debuild installations, install the init.d script, too
if [ -z "$(DESTDIR)" ] ; then \
case $(shell ps -p1 -o fname h) in \
"init") \
install -D -o root -g root -m 0755 startup/init.d/flashback /etc/init.d/flashback ; \
;; \
"systemd") \
echo "flashback must be manually installed on systemd-managed systems" \
;; \
esac \
fi
uninstall:
-rm -f $(DESTDIR)/usr/sbin/flashback
-rm -rf $(DESTDIR)/usr/share/doc/flashback
-rm -f $(DESTDIR)/etc/init.d/flashback
-rm -f $(DESTDIR)/var/lib/flashback
-rm -f $(DESTDIR)/var/run/flashback
#-------------------------------------------------------------------------------
# These are what you will call to build a Debian package and to clean it up.
debpkg:
-debuild -us -uc
debclean:
-rm -rf debian/flashback
-rm -rf debian/flashback.debhelper.log
-rm -rf debian/flashback.*.debhelper
-rm -rf debian/flashback.substvars
#-------------------------------------------------------------------------------
# vim: noexpandtab