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 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
22 install -d $(DESTDIR)$(MAN_DIR)/man1
23 install -m644 drin.1 $(DESTDIR)$(MAN_DIR)/man1
25 install: drin installdocs
26 install -d $(DESTDIR)$(LIBEXEC_DIR)
27 install -m755 libexec/*.sh $(DESTDIR)$(LIBEXEC_DIR)
28 install -d $(DESTDIR)$(BIN_DIR)
29 install -m755 $< $(DESTDIR)$(BIN_DIR)