mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 23:20:40 +00:00
37 lines
767 B
Makefile
37 lines
767 B
Makefile
FILES=pokered ascii ebcdic37 iso8859_1 katakana hiragana
|
|
F_SDB=$(addsuffix .sdb,$(FILES))
|
|
SDB=../../../shlr/sdb/sdb
|
|
|
|
include ../../../config-user.mk
|
|
include ../../../global.mk
|
|
|
|
R2_CHARSETS_PATH=$(DESTDIR)$(DATADIR)/radare2/$(VERSION)/charsets
|
|
CWD=$(shell pwd)
|
|
|
|
alle: $(F_SDB)
|
|
|
|
%.sdb: %.sdb.txt
|
|
$(SDB) $@ = < $<
|
|
$(SDB) -t -C $@
|
|
test -f $@
|
|
|
|
clean:
|
|
rm -f *.sdb *.c *.gperf *.o *.d
|
|
|
|
install:
|
|
mkdir -p "$(R2_CHARSETS_PATH)"
|
|
for FILE in *.sdb ; do \
|
|
cp -f "${CWD}/$$FILE" "${R2_CHARSETS_PATH}/$$FILE" ; \
|
|
done
|
|
|
|
uninstall:
|
|
rm -rf "$(R2_CHARSETS_PATH)"
|
|
|
|
symstall install-symlink:
|
|
mkdir -p "$(R2_CHARSETS_PATH)"
|
|
for FILE in *.sdb ; do \
|
|
ln -fs "${CWD}/$$FILE" "${R2_CHARSETS_PATH}/$$FILE" ; \
|
|
done
|
|
|
|
.PHONY: alle clean uninstall install symstall install-symlink
|