source: Makefile @ 9b7863

Revision 9b7863, 908 bytes checked in by Erik Ekman <yarrick@…>, 11 years ago (diff)

fix sbin dir, add permissions

  • 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) $(sbindir)/iodine
32        $(RM) $(RM_FLAGS) $(sbindir)/iodined
33        $(RM) $(RM_FLAGS) $(mandir)/man8/iodine.8
34       
35test: all
36        @(cd tests; make all)
37
38clean:
39        @echo "Cleaning..."
40        @(cd src; make clean)
41        @(cd tests; make clean)
42        @rm -rf bin
43
Note: See TracBrowser for help on using the repository browser.