Skip to content

Commit

Permalink
Merge pull request #55 from pyrated/master
Browse files Browse the repository at this point in the history
Add install/uninstall target to Makefile
  • Loading branch information
Chris Knadler committed May 22, 2013
2 parents 6b8202f + 74cafda commit 4d13dd7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ EXAMPLES_DIR = examples
RCOMP_DIR = spec/rcomp
CHECK_DIR = spec/check

# Install Directories
INSTALL_PREFIX = /usr/local

# Sources
LIBMT_SRCS = $(wildcard $(SRC_DIR)/*.c)

Expand Down Expand Up @@ -95,4 +98,11 @@ clean_examples:

rebuild: clean all

install: libmt
install -d $(INSTALL_PREFIX)/lib
install $(LIB_DIR)/libmt.a $(INSTALL_PREFIX)/lib/libmt.a

uninstall:
rm -f $(INSTALL_PREFIX)/lib/libmt.a

.PHONY: clean test

0 comments on commit 4d13dd7

Please sign in to comment.