mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
install-files.mk: Add install-files.mk
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
bc496450c2
commit
66cb9ad5af
1 changed files with 19 additions and 0 deletions
19
make/install-files.mk
Normal file
19
make/install-files.mk
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
LOCAL_FILES ?= $(filter-out CVS .git Makefile, $(wildcard *))
|
||||||
|
TARGET_DIR ?= $(PREFIX)/share
|
||||||
|
TARGET_MODE ?= 440
|
||||||
|
TARGET_OWNER ?= root
|
||||||
|
TARGET_GROUP ?= root
|
||||||
|
|
||||||
|
all:
|
||||||
|
install: install.done
|
||||||
|
clean: done.clean
|
||||||
|
distclean:
|
||||||
|
|
||||||
|
done.clean:
|
||||||
|
rm -f *.done
|
||||||
|
|
||||||
|
install.done:
|
||||||
|
mkdir -p $(TARGET_DIR)
|
||||||
|
$(INSTALL) -m $(TARGET_MODE) -o $(TARGET_OWNER) -g $(TARGET_GROUP) $(LOCAL_FILES) $(TARGET_DIR)/
|
||||||
|
touch $@
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue