This prevents the install(1) command to fiddle with owner, group and
permission information of already existing items (which could fail).
include ../../Makefile.ax
install-local: bup-save-user
- install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
- "$(DESTDIR)$(PREFIX)/bin"
+ [ -d "$(DESTDIR)$(PREFIX)/bin" ] || \
+ install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
+ "$(DESTDIR)$(PREFIX)/bin"
install -p -o "$(USER)" -g "$(GROUP)" -m 755 bup-save-user \
"$(DESTDIR)$(PREFIX)/bin/bup-save-user"
include ../../Makefile.ax
install-local: ax-common.sh
- install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
- "$(DESTDIR)$(PREFIX)/lib/ax"
+ [ -d "$(DESTDIR)$(PREFIX)/lib/ax" ] || \
+ install -d -o "$(USER)" -g "$(GROUP)" -m 755 \
+ "$(DESTDIR)$(PREFIX)/lib/ax"
install -p -o "$(USER)" -g "$(GROUP)" -m 644 README \
"$(DESTDIR)$(PREFIX)/lib/ax/README"
install -p -o "$(USER)" -g "$(GROUP)" -m 644 ax-common.sh \