Merge with git+ssh://toidinamai@repo.or.cz/srv/git/vlock.git
[vlock.git] / scripts / Makefile
blob8d44ff84eb6f67e45923f2d625a413176e90fc58
1 include ../config.mk
3 .PHONY: all
4 all: $(SCRIPTS)
6 .PHONY: install
7 install: $(addprefix install-, $(SCRIPTS))
9 SCRIPT_GROUP = $(ROOT_GROUP)
10 SCRIPT_MODE = 0755
12 install-%.sh : SCRIPT_TARGET=$(<:.sh=)
13 install-%: %
14 $(MKDIR_P) $(DESTDIR)$(VLOCK_SCRIPT_DIR)
15 $(INSTALL) -m $(SCRIPT_MODE) -o root -g $(SCRIPT_GROUP) $< $(DESTDIR)$(VLOCK_SCRIPT_DIR)/$(SCRIPT_TARGET)
17 .PHONY: clean
18 clean: