Skip to content

Commit

Permalink
added make install
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 8, 2011
1 parent c115509 commit 498113d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

CC ?= gcc

PREFIX = /usr/local

SRC = src/parser.c \
src/compile.c \
src/tree.c
Expand All @@ -19,7 +21,13 @@ src/parser.c: src/parser.leg
%.o: %.c
$(CC) $< $(CFLAGS) -o $@

install: bin/cdescent
cp -f $< $(PREFIX)/$<

uninstall:
rm -f $(PREFIX)/bin/cdescent

clean:
rm -fr bin src/*.o

.PHONY: clean
.PHONY: clean install uninstall

0 comments on commit 498113d

Please sign in to comment.