Merge pull request #22 from bor/fix/Makefile

Add 'install -d' to create dirs in case they don't exists.

This fix helps creating packages under chroot/etc.
for example see
This commit is contained in:
Michel Machado 2015-09-14 15:24:23 -04:00
commit fc4af9d255

View File

@ -12,11 +12,14 @@ all: $(TARGETS)
experimental: $(EXPERIMENTAL_TARGETS)
install: all
$(INSTALL) -d $(PREFIX)/bin
$(INSTALL) -oroot -groot -m755 $(TARGETS) $(PREFIX)/bin
$(INSTALL) -d $(PREFIX)/share/man/man1
$(INSTALL) -oroot -groot -m644 f3read.1 $(PREFIX)/share/man/man1
$(LN) -sf f3read.1 $(PREFIX)/share/man/man1/f3write.1
install-experimental: experimental
$(INSTALL) -d $(PREFIX)/bin
$(INSTALL) -oroot -groot -m755 $(EXPERIMENTAL_TARGETS) $(PREFIX)/bin
f3write: utils.o f3write.o