lib.mk, scripts.mk: Create installation directory if not already present

This commit is contained in:
Jan Lindemann 2007-07-20 08:51:25 +00:00 committed by Jan Lindemann
commit c1e646143b
2 changed files with 12 additions and 3 deletions

View file

@ -8,7 +8,7 @@ include $(MODDIR)/make/rules.mk
all.done: $(SCRIPTS) $(BUILD_EXE_SH)
clean:allclean localclean doneclean textclean
install:$(INSTALLED_EXE_SH)
install: target-dir.done $(INSTALLED_EXE_SH)
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
@ -18,3 +18,8 @@ $(HOME)/bin/%: %
mv $@.tmp $@
install-home-bin: $(HOME_BIN_EXE_SH)
target-dir.done:
test -d $(INSTALL_BINDIR) || $(INSTALL) -m $(EXEMODE) -o $(EXEOWNER) -d $(INSTALL_BINDIR)
touch $@