summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-02-01 16:45:18 +0100
committerRoland Reichwein <mail@reichwein.it>2021-02-01 16:45:18 +0100
commitf34a0aa3a2d46d349a41c0b28939176791c2efbe (patch)
tree663e5d5fd02cbb9b8f44cc502083f85b5b4d5c17 /Makefile
parent611601ec36a5603bc9c94cdac9a307c4bb07c929 (diff)
Implemented recode and validate tools
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5d64631..191e8b0 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,7 @@ LIBS+= \
endif
SRC=\
+ src/file.cpp \
src/recode.cpp \
src/validate.cpp \
src/test-unicode.cpp
@@ -68,13 +69,13 @@ all: src/recode src/test-unicode src/validate
test: src/test-unicode
src/test-unicode
-src/recode: src/recode.o dep
- $(CXX) $(LDFLAGS) $< $(LDLIBS) $(LIBS) -o $@
+src/recode: src/recode.o src/file.o dep
+ $(CXX) $(LDFLAGS) src/recode.o src/file.o $(LDLIBS) $(LIBS) -o $@
-src/validate: src/validate.o dep
- $(CXX) $(LDFLAGS) $< $(LDLIBS) $(LIBS) -o $@
+src/validate: src/validate.o src/file.o dep
+ $(CXX) $(LDFLAGS) src/validate.o src/file.o $(LDLIBS) $(LIBS) -o $@
-src/test-unicode: src/test-unicode.o dep
+src/test-unicode: src/test-unicode.o src/file.o dep
$(CXX) $(LDFLAGS) $< $(LDLIBS) $(LIBS) -o $@
dep: $(SRC:.cpp=.d)
@@ -93,6 +94,9 @@ clean:
install:
mkdir -p $(DESTDIR)/usr/include
cp include/unicode.h $(DESTDIR)/usr/include
+ mkdir -p $(DESTDIR)/usr/bin
+ cp src/recode $(DESTDIR)/usr/bin/unicode-recode
+ cp src/validate $(DESTDIR)/usr/bin/unicode-validate
deb:
# build binary deb package