diff -r 35120de6ee53 -r a7ff583e153f Makefile --- a/Makefile Fri Dec 28 16:25:07 2012 +0100 +++ b/Makefile Fri Dec 28 16:43:18 2012 +0100 @@ -1,7 +1,7 @@ # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. # -# Copyright 2011 Mike Becker. All rights reserved. +# Copyright 2013 Mike Becker. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -40,14 +40,18 @@ VERSION_PREFIX=1.0. SRCDIR=src BUILDDIR=build +PREFIX=/usr OBJ = arguments.o bfile_heuristics.o cline.o regex_parser.o scanner.o settings.o stream.o string_list.o suffix_fnc.o BIN = $(BUILDDIR)/cline include $(CONF).mk -all: $(BUILDDIR) compile +all: $(BUILDDIR) $(BIN) -compile: $(OBJ:%=$(BUILDDIR)/%) +install: $(BIN) + cp $(BIN) $(PREFIX)/bin + +$(BIN): $(OBJ:%=$(BUILDDIR)/%) $(LD) -o $(BIN) $^ $(LDFLAGS) $(BUILDDIR):