diff options
| author | Rex Dieter <rdieter@gmail.com> | 2011-01-13 20:18:53 +0000 |
|---|---|---|
| committer | Rex Dieter <rdieter@gmail.com> | 2011-01-13 20:18:53 +0000 |
| commit | 51f7cc6874d9d61e1f6c23936a6b5a6f080d78d3 (patch) | |
| tree | 9f875f23d24d512543de66d529fee1758e964c04 /Makefile.am | |
| parent | c4252ed8245e6972af056ded2c7263c89a1568b6 (diff) | |
followup autotools fixes, adding DESTDIR support
Diffstat (limited to 'Makefile.am')
| -rw-r--r-- | Makefile.am | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am index 26e1df0d..8a9bfa40 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,12 +17,12 @@ install-data-hook: cat $${dir}/.report.txt ; \ done @echo "" - @echo "Installing: libopenjpeg1.pc $(pkgconf_dir)" + @echo "Installing: libopenjpeg1.pc $(DESTDIR)$(pkgconf_dir)" @echo "" - @$(INSTALL) -d $(pkgconf_dir) - @cp libopenjpeg1.pc $(pkgconf_dir)/libopenjpeg1.pc - @(cd $(pkgconf_dir) && $(RM) libopenjpeg.pc && \ + @$(INSTALL) -d $(DESTDIR)$(pkgconf_dir) + @cp libopenjpeg1.pc $(DESTDIR)$(pkgconf_dir)/libopenjpeg1.pc + @(cd $(DESTDIR)$(pkgconf_dir) && $(RM) libopenjpeg.pc && \ $(LN_S) libopenjpeg1.pc libopenjpeg.pc) uninstall-hook: - @(cd $(pkgconf_dir) && $(RM) libopenjpeg.pc libopenjpeg1.pc) + @(cd $(DESTDIR)$(pkgconf_dir) && $(RM) libopenjpeg.pc libopenjpeg1.pc) |
