install target added

This commit is contained in:
Jan Losinshi 2008-08-27 20:17:20 +02:00
parent d71e558ba4
commit d764e634fb
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,11 @@
OBJECTS=xerxes.cxx socket.cxx epoll.cxx OBJECTS=xerxes.cxx socket.cxx epoll.cxx
BIN=xerxes BIN=xerxes
RUNNER=xerxes_runner.rb
CONFFILE=xerxes.conf
BINDIR=/usr/bin/
CONFDIR=/etc/
$(BIN): $(OBJECTS) $(BIN): $(OBJECTS)
g++ -o $(BIN) $(OBJECTS) -Wall -pedantic -ggdb -lboost_regex -lboost_program_options g++ -o $(BIN) $(OBJECTS) -Wall -pedantic -ggdb -lboost_regex -lboost_program_options
@ -12,4 +18,9 @@ test: $(BIN)
clean: clean:
rm -f $(BIN) *.o *.cxx~ *.hxx~ Makefile~ rm -f $(BIN) *.o *.cxx~ *.hxx~ Makefile~
install:
install -m755 $(BIN) $(DESTDIR)$(BINDIR)
install -m755 $(RUNNER) $(DESTDIR)$(BINDIR)
install -m644 $(CONFFILE) $(DESTDIR)$(CONFDIR)
.PHONY: all .PHONY: all