Skip to content

Commit

Permalink
Make sure directories are created before files are installed
Browse files Browse the repository at this point in the history
When building in parallel, it could happen that the install-* targets
that need directories are being run in parallel to the install-mkdirs
target. This can cause the installation to fail, when the directories
are not yet created.
  • Loading branch information
reinerh committed Sep 3, 2021
1 parent 39dc62f commit e64a673
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ install-mkdirs:

themes-install: install-themes

install-themes:
install-themes: install-mkdirs
install -m 644 *.ibt $(datadir)/icebreaker
install -m 644 *.wav *.bmp *.png $(datadir)/icebreaker

install-bin: icebreaker
install-bin: install-mkdirs icebreaker
install -m 755 icebreaker $(bindir)

install-man: icebreaker.6
install-man: install-mkdirs icebreaker.6
install -m 644 icebreaker.6 $(mandir)/man6

install: all install-mkdirs install-themes install-bin install-man
Expand Down

0 comments on commit e64a673

Please sign in to comment.