mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
Install fixes, $prefix supported better, strip binaries and .so files
- Makefile fixes for installation, paths encoded wrong - Strip binaries + .so files, support for $(CROSS) toolchain strip - Default install is now to /sbin/finit and /usr/ - Use the 'plugindir' environemnt variable instead of 'PLUGIN_DIR' Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
149ed0e81c
commit
b373e199a8
7 files changed
+44
-23
No files matched your search
+6
-6
@@ -17,18 +17,18 @@ distclean: clean
|
||||
-@$(RM) $(JUNK) $(DEPS)
|
||||
|
||||
install: all
|
||||
@install -d $(DESTDIR)$(prefix)$(PLUGIN_DIR)
|
||||
@install -d $(DESTDIR)$(plugindir)
|
||||
@for plugin in $(PLUGINS); do \
|
||||
echo " INSTALL $(DESTDIR)$(prefix)$(PLUGIN_DIR)/$$plugin"; \
|
||||
cp $$plugin $(DESTDIR)$(prefix)$(PLUGIN_DIR); \
|
||||
echo " INSTALL $(DESTDIR)$(plugindir)/$$plugin"; \
|
||||
$(STRIPINST) $$plugin $(DESTDIR)$(plugindir)/$$plugin; \
|
||||
done
|
||||
|
||||
uninstall:
|
||||
-@for plugin in $(PLUGINS); do \
|
||||
echo " RM $(PLUGIN_DIR)/$$plugin"; \
|
||||
rm $(DESTDIR)$(prefix)$(PLUGIN_DIR)/$$plugin 2>/dev/null; \
|
||||
echo " RM $(DESTDIR)$(plugindir)/$$plugin"; \
|
||||
rm $(DESTDIR)$(plugindir)/$$plugin 2>/dev/null; \
|
||||
done
|
||||
-@rmdir $(DESTDIR)$(prefix)$(PLUGIN_DIR) 2>/dev/null
|
||||
-@rmdir $(DESTDIR)$(plugindir) 2>/dev/null
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
-include $(DEPS)
|
||||
|
||||
Reference in new issue
Block a user