diff options
| author | Petr Spacek <pspacek@redhat.com> | 2016-11-10 14:39:59 +0100 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-11-15 17:00:32 +0100 |
| commit | 1fa0ed954bb45b6e3858c1c54470b1d16ab204d9 (patch) | |
| tree | e015402ac184d834c419ef34dfd12608f94acc42 /install/html | |
| parent | 20918579acb43391d5d04ee8050b37142a55df76 (diff) | |
| download | freeipa-1fa0ed954bb45b6e3858c1c54470b1d16ab204d9.tar.gz freeipa-1fa0ed954bb45b6e3858c1c54470b1d16ab204d9.tar.xz freeipa-1fa0ed954bb45b6e3858c1c54470b1d16ab204d9.zip | |
Build: move web UI file installation from SPEC to Makefile.am
This is next step towards fully functional make install.
https://fedorahosted.org/freeipa/ticket/6418
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'install/html')
| -rw-r--r-- | install/html/Makefile.am | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/install/html/Makefile.am b/install/html/Makefile.am index c487f9f4e..c65ec26df 100644 --- a/install/html/Makefile.am +++ b/install/html/Makefile.am @@ -16,3 +16,17 @@ EXTRA_DIST = \ MAINTAINERCLEANFILES = \ *~ \ Makefile.in + +# Default user-modifiable HTML files are installed into /etc. +# /usr points to these modifiable files in /etc +# This is ugly but we do not have time to change it right now. +# Relative paths must be used to ensure that symlinks created in buildroot +# work after installation. +htmldatadir = $(datarootdir)/ipa/html +install-data-hook: + $(INSTALL) -d -m 755 $(DESTDIR)$(htmldatadir) + for FILE in $(app_DATA); do \ + $(LN_S) --force --relative \ + $(DESTDIR)$(appdir)/$${FILE} \ + $(DESTDIR)$(htmldatadir)/$${FILE}; \ + done |
