diff options
author | Samuel Lidén Borell <samuel@slbdata.se> | 2009-06-16 23:28:27 +0200 |
---|---|---|
committer | Samuel Lidén Borell <samuel@slbdata.se> | 2010-01-02 22:30:07 +0100 |
commit | 61e35845a7545e2b100f202ba84188212dd87f5a (patch) | |
tree | 247bc11945c753bb60a21016cd24e2ce907302a3 /plugin/Makefile | |
parent | 290edce6e5bcac9ecd7f48214836d2788b61bbbc (diff) | |
download | fribid-61e35845a7545e2b100f202ba84188212dd87f5a.tar.gz fribid-61e35845a7545e2b100f202ba84188212dd87f5a.tar.bz2 fribid-61e35845a7545e2b100f202ba84188212dd87f5a.zip |
Made the makefiles respect the DESTDIR variable
Diffstat (limited to 'plugin/Makefile')
-rw-r--r-- | plugin/Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugin/Makefile b/plugin/Makefile index e5dc64d..832e692 100644 --- a/plugin/Makefile +++ b/plugin/Makefile @@ -28,19 +28,19 @@ clean: rm -f $(OBJECTS) libplugins.so install: - install -d $(LIB_PATH) - install -s -m 644 libplugins.so $(LIB_PATH) + install -d $(DESTDIR)$(LIB_PATH) + install -s -m 644 libplugins.so $(DESTDIR)$(LIB_PATH) for path in $(NPAPI_PLUGIN_PATHS); do \ - (../configure --internal--remove-link $$path/libplugins.so $(NPAPI_PLUGIN_LIB) || exit 1) && \ - install -d $$path && \ - ln -s $(NPAPI_PLUGIN_LIB) $$path/libplugins.so; \ + (../configure --internal--remove-link $(DESTDIR)$$path/libplugins.so $(NPAPI_PLUGIN_LIB) || exit 1) && \ + install -d $(DESTDIR)$$path && \ + ln -s $(NPAPI_PLUGIN_LIB) $(DESTDIR)$$path/libplugins.so; \ done uninstall: - rm -f $(NPAPI_PLUGIN_LIB) - [ ! -d $(LIB_PATH) ] || rmdir $(LIB_PATH) 2> /dev/null || true + rm -f $(DESTDIR)$(NPAPI_PLUGIN_LIB) + [ ! -d $(DESTDIR)$(LIB_PATH) ] || rmdir $(DESTDIR)$(LIB_PATH) 2> /dev/null || true for path in $(NPAPI_PLUGIN_PATHS); do \ - ../configure --internal--remove-link $$path/libplugins.so $(NPAPI_PLUGIN_LIB) || exit 1; \ + ../configure --internal--remove-link $(DESTDIR)$$path/libplugins.so $(NPAPI_PLUGIN_LIB) || exit 1; \ done $(OBJECTS): ../common/defines.h ../common/config.h |