--- a/Makefile Fri Jan 08 22:20:45 2010 +0200
+++ b/Makefile Fri Jan 08 22:22:40 2010 +0200
@@ -27,14 +27,17 @@
F_DICT = $(patsubst %.tab,%.dict.dz,$(F_TAB))
F_IFO = $(patsubst %.tab,%.ifo,$(F_TAB))
+.PHONY: all
all: dist
+.PHONY: verify
verify: dist
@echo
@for dic in $(F_IFO); do \
stardict_verify $$dic; \
done
+.PHONY: dist
dist: $(F_DICT)
%.tab: %.tab_
@@ -44,6 +47,7 @@
tabfile $<
/bin/sh update-ifo.sh $*.ifo
+.PHONY: install
install: dist
mkdir -p $(dicdir)
for dic in $(FNAME); do \
@@ -52,6 +56,7 @@
install -m 644 $$dic.ifo $(dicdir); \
done
+.PHONY: uninstall
uninstall:
rm -r -f $(dicdir)
@@ -68,7 +73,11 @@
uninstall-local:
rm -f -r $(HOME)/.stardict/dic/$(DICSETNAME)
+.PHONY: clean
clean:
for dic in $(FNAME); do \
rm -f $$dic.dict.dz $$dic.idx $$dic.ifo $$dic.tab; \
done
+
+.PHONY: distclean
+distclean: clean