Files
freeipa/install/html/Makefile.am
T
Petr Spacek 1fa0ed954b 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>
2016-11-15 17:00:32 +01:00

33 lines
941 B
Makefile

NULL =
appdir = $(IPA_SYSCONF_DIR)/html
app_DATA = \
ffconfig.js \
ffconfig_page.js \
ssbrowser.html \
browserconfig.html \
unauthorized.html \
$(NULL)
EXTRA_DIST = \
$(app_DATA) \
$(NULL)
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