mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-30 08:18:39 +01:00
lib.mk, scripts.mk: Create installation directory if not already present
This commit is contained in:
parent
78e4a1a360
commit
c1e646143b
2 changed files with 12 additions and 3 deletions
|
|
@ -5,12 +5,12 @@
|
||||||
|
|
||||||
|
|
||||||
include $(MODDIR)/make/defs.mk
|
include $(MODDIR)/make/defs.mk
|
||||||
|
TESTVAR := $(LDFLAGS)
|
||||||
all: $(LIB_SO) $(LINKS_SO) $(MSVCPP_IMPLIB) $(STRIP_DONE)
|
all: $(LIB_SO) $(LINKS_SO) $(MSVCPP_IMPLIB) $(STRIP_DONE)
|
||||||
|
|
||||||
include $(MODDIR)/make/rules.mk
|
include $(MODDIR)/make/rules.mk
|
||||||
|
|
||||||
install: $(LOCAL_TARGETS) all $(INSTALLED_LIB_A) $(INSTALLED_LIB_SO) $(INSTALLED_LINKS_SO)
|
install: $(LOCAL_TARGETS) all target-dir.done $(INSTALLED_LIB_A) $(INSTALLED_LIB_SO) $(INSTALLED_LINKS_SO)
|
||||||
clean: libclean local_libclean
|
clean: libclean local_libclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
local_libclean: clean.mingw clean.unix clean.all
|
local_libclean: clean.mingw clean.unix clean.all
|
||||||
|
|
@ -28,3 +28,7 @@ endif
|
||||||
clean.all:
|
clean.all:
|
||||||
rm -rf *.a *.o *~ st* .*.swp *.done
|
rm -rf *.a *.o *~ st* .*.swp *.done
|
||||||
|
|
||||||
|
target-dir.done:
|
||||||
|
test -d $(INSTALL_LIBDIR) || $(INSTALL) -m $(EXEMODE) -o $(EXEOWNER) -d $(INSTALL_LIBDIR)
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ include $(MODDIR)/make/rules.mk
|
||||||
|
|
||||||
all.done: $(SCRIPTS) $(BUILD_EXE_SH)
|
all.done: $(SCRIPTS) $(BUILD_EXE_SH)
|
||||||
clean:allclean localclean doneclean textclean
|
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)))
|
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
|
||||||
|
|
@ -18,3 +18,8 @@ $(HOME)/bin/%: %
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
install-home-bin: $(HOME_BIN_EXE_SH)
|
install-home-bin: $(HOME_BIN_EXE_SH)
|
||||||
|
|
||||||
|
target-dir.done:
|
||||||
|
test -d $(INSTALL_BINDIR) || $(INSTALL) -m $(EXEMODE) -o $(EXEOWNER) -d $(INSTALL_BINDIR)
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue