1 # Packagers may want to override this!
4 LIBEXEC_DIR ?= $(prefix)/share/drin/libexec
5 BIN_DIR := $(prefix)/bin
6 MAN_DIR := $(prefix)/share/man
8 .PHONY: all local docs installdocs install clean
13 sed -e 's#@libexec@#$(LIBEXEC_DIR)#g' $< > $@ \
16 # Useful during development to run the script from the working directory
17 local: LIBEXEC_DIR := $(PWD)/libexec
24 install -d $(DESTDIR)$(MAN_DIR)/man1
25 install -m644 drin.1 $(DESTDIR)$(MAN_DIR)/man1
27 install: drin installdocs
28 install -d $(DESTDIR)$(LIBEXEC_DIR)
29 install -m755 libexec/*.sh $(DESTDIR)$(LIBEXEC_DIR)
30 install -d $(DESTDIR)$(BIN_DIR)
31 install -m755 $< $(DESTDIR)$(BIN_DIR)