Skip to content

Commit 36cd7ea

Browse files
AlwinEschrevmischa
authored andcommitted
fix OSX install by use of preset subdirs
Before was a `install -D ...` used but `-D` not supported on OSX. With this change becomes it removed and on a separate call before all required directories created.
1 parent b2c3b49 commit 36cd7ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ pm_font__DATA = fonts/Vera.ttf fonts/VeraMono.ttf
2020
# find and install all preset files
2121
install-data-local:
2222
if ENABLE_PRESET_SUBDIRS
23-
find "$(PRESETSDIR)" -type f -exec install -Dm 755 "{}" "$(DESTDIR)/$(pm_data_dir)/{}" \;
23+
find "$(PRESETSDIR)" -type d -exec $(MKDIR_P) "$(DESTDIR)/$(pm_data_dir)/{}" \;
24+
find "$(PRESETSDIR)" -type f -exec $(INSTALL_DATA) "{}" "$(DESTDIR)/$(pm_data_dir)/{}" \;
2425
else
2526
test -z $(DESTDIR)$(pkgdatadir) || $(MKDIR_P) $(DESTDIR)$(pm_presets_dir)
2627
find "$(PRESETSDIR)" -type f -print0 | LC_ALL=C sort -z | xargs -0 '-I{}' $(INSTALL_DATA) '{}' $(DESTDIR)$(pm_presets_dir)

0 commit comments

Comments
 (0)