mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
scripts/Makefile: Create directories before installing to them
This commit is contained in:
parent
2d3851f470
commit
59ee48c42f
1 changed files with 12 additions and 4 deletions
|
|
@ -29,10 +29,18 @@
|
|||
# #
|
||||
########################################################################
|
||||
|
||||
install:
|
||||
install *.sh -m 755 $(HOME)/bin/
|
||||
mkdir -p $(HOME)/.jannet
|
||||
if [ -f *.conf ]; then install *.conf $(HOME)/.jannet/; fi
|
||||
EXEDIR = $(HOME)/bin
|
||||
CONFDIR = $(HOME)/.jannet
|
||||
|
||||
$(EXEDIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(CONFDIR):
|
||||
mkdir -p $@
|
||||
|
||||
install: $(EXEDIR) $(CONFDIR)
|
||||
install *.sh -m 755 $(EXEDIR)/
|
||||
if [ -f *.conf ]; then install *.conf $(CONFDIR)/; fi
|
||||
|
||||
clean distclean libclean:
|
||||
rm -rf *~ .*.swp core
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue