jw-pkg/make/install-files.mk

21 lines
428 B
Makefile
Raw Normal View History

LOCAL_FILES ?= $(filter-out CVS .git Makefile %.done, $(wildcard *))
TARGET_DIR ?= $(PREFIX)/share
TARGET_MODE ?= 440
TARGET_OWNER ?= root
TARGET_GROUP ?= root
include $(MODDIR)/make/defs.mk
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 $@