comparison mk/script.mk @ 25:813a27f32072

create installation directories
author David A. Holland
date Sun, 26 May 2013 21:58:46 -0400
parents 5f36d8d69aba
children
comparison
equal deleted inserted replaced
24:ae420ef170e4 25:813a27f32072
9 mv -f $@.new $@ 9 mv -f $@.new $@
10 10
11 depend: ; 11 depend: ;
12 12
13 install: 13 install:
14 [ -d $(DESTDIR)$(PREFIX)/$(BINDIR) ] || \
15 mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
14 $(INSTALL) -c $(PROG) $(DESTDIR)$(PREFIX)/$(BINDIR)/$(PROG) 16 $(INSTALL) -c $(PROG) $(DESTDIR)$(PREFIX)/$(BINDIR)/$(PROG)
15 17
16 clean distclean: 18 clean distclean:
17 rm -f $(PROG) $(PROG).new 19 rm -f $(PROG) $(PROG).new
18 20