source: Makefile @ 3015cc

Revision 3015cc, 696 bytes checked in by Bjorn Andersson <flex@…>, 11 years ago (diff)

#9 fixes compabilityproblems with gnu install

  • Property mode set to 100644
Line 
1PREFIX=/usr/local
2
3INSTALL=/usr/bin/install
4INSTALL_FLAGS=
5
6MKDIR=mkdir
7MKDIR_FLAGS=-p
8
9RM=rm
10RM_FLAGS=-f
11
12all:
13        @(cd src; make all)
14
15install: all
16        $(MKDIR) $(MKDIR_FLAGS) $(PREFIX)/sbin
17        $(INSTALL) $(INSTALL_FLAGS) bin/iodine $(PREFIX)/sbin/iodine
18        $(INSTALL) $(INSTALL_FLAGS) bin/iodined $(PREFIX)/sbin/iodined
19        $(MKDIR) $(MKDIR_FLAGS) $(PREFIX)/man/man8
20        $(INSTALL) $(INSTALL_FLAGS) man/iodine.8 $(PREFIX)/man/man8/iodine.8
21
22uninstall:
23        $(RM) $(RM_FLAGS) $(PREFIX)/sbin/iodine
24        $(RM) $(RM_FLAGS) $(PREFIX)/sbin/iodined
25        $(RM) $(RM_FLAGS) $(PREFIX)/man/man8/iodine.8
26       
27test: all
28        @(cd tests; make all)
29
30clean:
31        @echo "Cleaning..."
32        @(cd src; make clean)
33        @(cd tests; make clean)
34        @rm -rf bin
35
Note: See TracBrowser for help on using the repository browser.