source: Makefile @ ac5d65

Revision ac5d65, 587 bytes checked in by Bjorn Andersson <flex@…>, 11 years ago (diff)

install and uninstall in makefile

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