NAME = history BIN = history.filter.dpi DILLO_DIR = ~/.dillo DPI_DIR = $(DILLO_DIR)/dpi DPIDRC = $(DILLO_DIR)/dpidrc all: $(BIN) $(DPIDRC): cp /etc/dillo/dpidrc $@ install-proto: $(DPIDRC) echo 'proto.history=$(NAME)/$(BIN)' >> $< install: $(BIN) install-proto mkdir -p $(DPI_DIR)/$(NAME) cp -f $(BIN) $(DPI_DIR)/$(NAME) link: $(BIN) install-proto mkdir -p $(DPI_DIR)/$(NAME) ln -frs $(BIN) $(DPI_DIR)/$(NAME) uninstall: $(BIN) rm -f $(DPI_DIR)/$(NAME)/$(BIN) .PHONY: all install link uninstall