-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (35 loc) · 915 Bytes
/
Makefile
File metadata and controls
43 lines (35 loc) · 915 Bytes
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
INSTALL = install
INSTALLSTRIP =
BINDIR = /usr/local/bin
SHAREDIR = /usr/local/share
ETCDIR = /usr/local/etc
BINS = lost_penguins slvextract
default:
+$(MAKE) -C src
+$(MAKE) -C tools
lost_penguins:
+$(MAKE) -C src
tools:
+$(MAKE) -C tools
docs:
+$(MAKE) -C docs
clean:
rm -f $(BINS)
+$(MAKE) -C src clean
+$(MAKE) -C tools clean
+$(MAKE) -C docs clean
distclean: clean
+$(MAKE) -C src distclean
+$(MAKE) -C tools distclean
+$(MAKE) -C docs distclean
rm -f *~
install: lost_penguins
$(INSTALL) $(INSTALLSTRIP) -m 755 lost_penguins $(BINDIR)
if test ! -d $(SHAREDIR)/lost_penguins; then mkdir -p $(SHAREDIR)/lost_penguins; fi
$(INSTALL) -m 644 data/* $(SHAREDIR)/lost_penguins/
if test ! -d $(ETCDIR); then mkdir -p $(ETCDIR); fi
$(INSTALL) -m 644 lost_penguins.conf $(ETCDIR)
uninstall:
rm -f $(BINDIR)/lost_penguins
rm -rf $(SHAREDIR)/lost_penguins/
rm -f $(ETCDIR)/lost_penguins.conf