2018-05-13 17:21:51 +02:00
|
|
|
.PHONY: main test install uninstall clean
|
2018-04-25 14:29:11 +02:00
|
|
|
|
2018-05-18 10:52:11 +02:00
|
|
|
OBJS = syllable.o utf8.o transliteration.o iast.o iast-czech.o encoder.o
|
2018-04-26 18:49:23 +02:00
|
|
|
|
|
|
|
|
2018-05-13 17:15:26 +02:00
|
|
|
iast: main.o $(OBJS)
|
2018-04-26 18:49:23 +02:00
|
|
|
$(CC) $^ -o $@
|
2018-04-25 14:29:11 +02:00
|
|
|
|
2018-05-13 17:15:26 +02:00
|
|
|
test: iast
|
2018-05-03 19:13:34 +02:00
|
|
|
sh tests/test.sh
|
2018-04-26 13:39:53 +02:00
|
|
|
|
2018-04-26 18:49:23 +02:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) -MMD -MP -c $< -o $@
|
|
|
|
|
2018-05-13 17:21:51 +02:00
|
|
|
install:
|
|
|
|
install -m 0755 iast /usr/bin
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f /usr/bin/iast
|
|
|
|
|
2018-04-25 14:29:11 +02:00
|
|
|
clean:
|
2018-05-13 17:15:26 +02:00
|
|
|
$(RM) iast *.o *.d
|