makefile: add install and uninstall targets

This commit is contained in:
Vlasta Vesely 2018-05-13 17:21:51 +02:00
parent ed32c8fa1d
commit 02145edffc

View file

@ -1,4 +1,4 @@
.PHONY: main test clean
.PHONY: main test install uninstall clean
OBJS = syllable.o utf8.o transliteration.o iast.o iast-czech.o
@ -12,5 +12,11 @@ test: iast
%.o: %.c
$(CC) -MMD -MP -c $< -o $@
install:
install -m 0755 iast /usr/bin
uninstall:
rm -f /usr/bin/iast
clean:
$(RM) iast *.o *.d