source: Makefile @ f265e4

Revision f265e4, 1.0 KB checked in by Erik Ekman <yarrick@…>, 10 years ago (diff)

Missed one $(MAKE)

  • Property mode set to 100644
Line 
1prefix=/usr/local
2sbindir=$(prefix)/sbin
3datadir=$(prefix)/share
4mandir=$(datadir)/man
5
6DESTDIR=
7
8INSTALL=install
9INSTALL_FLAGS=
10
11MKDIR=mkdir
12MKDIR_FLAGS=-p
13
14RM=rm
15RM_FLAGS=-f
16
17all:
18        @(cd src; $(MAKE) all)
19
20install: all
21        $(MKDIR) $(MKDIR_FLAGS) $(DESTDIR)$(sbindir)
22        $(INSTALL) $(INSTALL_FLAGS) bin/iodine $(DESTDIR)$(sbindir)/iodine
23        chmod 755 $(DESTDIR)$(sbindir)/iodine
24        $(INSTALL) $(INSTALL_FLAGS) bin/iodined $(DESTDIR)$(sbindir)/iodined
25        chmod 755 $(DESTDIR)$(sbindir)/iodined
26        $(MKDIR) $(MKDIR_FLAGS) $(DESTDIR)$(mandir)/man8
27        $(INSTALL) $(INSTALL_FLAGS) man/iodine.8 $(DESTDIR)$(mandir)/man8/iodine.8
28        chmod 644 $(DESTDIR)$(mandir)/man8/iodine.8
29
30uninstall:
31        $(RM) $(RM_FLAGS) $(DESTDIR)$(sbindir)/iodine
32        $(RM) $(RM_FLAGS) $(DESTDIR)$(sbindir)/iodined
33        $(RM) $(RM_FLAGS) $(DESTDIR)$(mandir)/man8/iodine.8
34       
35test: all
36        @echo "!! The check library is required for compiling and running the tests"
37        @echo "!! Get it at http://check.sf.net"
38        @(cd tests; $(MAKE) all)
39
40clean:
41        @echo "Cleaning..."
42        @(cd src; $(MAKE) clean)
43        @(cd tests; $(MAKE) clean)
44        @rm -rf bin
45
Note: See TracBrowser for help on using the repository browser.