Make directories if needed and use specific permissions

This commit is contained in:
Bruno Wolff III 2013-06-29 15:44:34 -05:00
parent 5149abf0f9
commit 8311504e19

View File

@ -9,17 +9,21 @@ DESTDIR := /usr
DATADIR := $(DESTDIR)/share DATADIR := $(DESTDIR)/share
DOCDIR := $(DATADIR)/doc/ DOCDIR := $(DATADIR)/doc
name := spin-kickstarts name := spin-kickstarts
all: dist all: dist
install: install:
install *.ks* $(DATADIR)/$(name) mkdir -p -m 755 $(DATADIR)/$(name)
install custom/* $(DATADIR)/$(name)/custom install *.ks* -m 644 $(DATADIR)/$(name)
install l10n/* $(DATADIR)/$(name)/l10n mkdir -p -m 755 $(DATADIR)/$(name)/custom
install AUTHORS COPYING README $(DOCDIR)/$(name)-$(version) install -m 644 custom/* $(DATADIR)/$(name)/custom
mkdir -p -m 755 $(DATADIR)/$(name)/l10n
install -m 644 l10n/* $(DATADIR)/$(name)/l10n
mkdir -p -m 755 $(DOCDIR)/$(name)-$(version)
install -m 644 AUTHORS COPYING README $(DOCDIR)/$(name)-$(version)
clean: clean:
rm -f $(name)-*.tar.gz rm -f $(name)-*.tar.gz