summaryrefslogtreecommitdiff
path: root/utils/mkdirhier/Makefile
blob: 9dbbb9b6c10b7cefd4e311f23563d073264eaa52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
TOP=../..
include $(TOP)/mk/boilerplate.mk

boot :: all

PROG=mkdirhier
CLEAN_FILES += $(PROG)
all::
	$(RM) -f $(PROG)
	echo '#!$(SHELL)'                              >> $(PROG)
	cat $(PROG).sh                                 >> $(PROG)
	$(EXECUTABLE_FILE) $(PROG)

binary-dist:
	$(INSTALL_DIR)             $(BIN_DIST_DIR)/utils/mkdirhier
	$(INSTALL_DATA)   Makefile $(BIN_DIST_DIR)/utils/mkdirhier/
	$(INSTALL_SCRIPT) $(PROG)  $(BIN_DIST_DIR)/utils/mkdirhier/

include $(TOP)/mk/target.mk