3 # selector is a simple shell command for selection of strings with a
4 # dynamic pattern-matching.
6 # Copyright (c) 2009 Francois Fleuret
7 # Written by Francois Fleuret <francois.fleuret@idiap.ch>
9 # This file is part of selector.
11 # selector is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License version 3 as
13 # published by the Free Software Foundation.
15 # selector is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with selector. If not, see <http://www.gnu.org/licenses/>.
24 BINARY_PATH = /usr/bin
25 MAN_PATH = /usr/share/man/man1
29 REVISION_NUMBER=$(cat REVISION_NUMBER)
32 OPTIMIZE_FLAG = -ggdb3 -DDEBUG
34 OPTIMIZE_FLAG = -ggdb3 -O3
37 CXXFLAGS = -DREVISION_NUMBER=$(REVISION_NUMBER) -Wall $(OPTIMIZE_FLAG)
42 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
45 install -m 755 selector $(BINARY_PATH)
46 install -m 644 selector.1 $(MAN_PATH)
47 gzip $(MAN_PATH)/selector.1
50 rm $(BINARY_PATH)/selector
51 rm $(MAN_PATH)/selector.1.gz