1.1 --- a/Makefile Fri Dec 28 16:25:07 2012 +0100 1.2 +++ b/Makefile Fri Dec 28 16:43:18 2012 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 # 1.5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 1.6 # 1.7 -# Copyright 2011 Mike Becker. All rights reserved. 1.8 +# Copyright 2013 Mike Becker. All rights reserved. 1.9 # 1.10 # Redistribution and use in source and binary forms, with or without 1.11 # modification, are permitted provided that the following conditions are met: 1.12 @@ -40,14 +40,18 @@ 1.13 VERSION_PREFIX=1.0. 1.14 SRCDIR=src 1.15 BUILDDIR=build 1.16 +PREFIX=/usr 1.17 OBJ = arguments.o bfile_heuristics.o cline.o regex_parser.o scanner.o settings.o stream.o string_list.o suffix_fnc.o 1.18 BIN = $(BUILDDIR)/cline 1.19 1.20 include $(CONF).mk 1.21 1.22 -all: $(BUILDDIR) compile 1.23 +all: $(BUILDDIR) $(BIN) 1.24 1.25 -compile: $(OBJ:%=$(BUILDDIR)/%) 1.26 +install: $(BIN) 1.27 + cp $(BIN) $(PREFIX)/bin 1.28 + 1.29 +$(BIN): $(OBJ:%=$(BUILDDIR)/%) 1.30 $(LD) -o $(BIN) $^ $(LDFLAGS) 1.31 1.32 $(BUILDDIR):