Implemented release version install
This commit is contained in:
parent
f5bc7fcf65
commit
1e5a6651ea
4
Makefile
4
Makefile
@ -78,4 +78,6 @@ install: $(BIN)
|
|||||||
$(INSTALL) -d $(BINDIR)
|
$(INSTALL) -d $(BINDIR)
|
||||||
$(INSTALL) $(BIN) $(BINDIR)
|
$(INSTALL) $(BIN) $(BINDIR)
|
||||||
$(INSTALL) -d $(MANDIR)$(MANSECTION)
|
$(INSTALL) -d $(MANDIR)$(MANSECTION)
|
||||||
$(INSTALL) $(MANPAGE) $(MANDIR)$(MANSECTION)
|
$(INSTALL) -m 444 $(MANPAGE) $(MANDIR)$(MANSECTION)
|
||||||
|
$(INSTALL) -d $(DATADIR)/$(BIN)/plugins
|
||||||
|
$(INSTALL) -m 444 plugins/* $(DATADIR)/$(BIN)/plugins/
|
||||||
|
4
main.cpp
4
main.cpp
@ -86,7 +86,11 @@ bool handle_window_resize(const SDL_Event& event, bool quit) {
|
|||||||
int main(int argc, const char * argv[]) {
|
int main(int argc, const char * argv[]) {
|
||||||
try {
|
try {
|
||||||
// gather plugins
|
// gather plugins
|
||||||
|
#if DEBUG
|
||||||
sc::plugin<ScreensaverPlugin>::scan_plugins(sc::dirname(sc::tool_path(argv[0])) + "/plugins", "saver");
|
sc::plugin<ScreensaverPlugin>::scan_plugins(sc::dirname(sc::tool_path(argv[0])) + "/plugins", "saver");
|
||||||
|
#else
|
||||||
|
sc::plugin<ScreensaverPlugin>::scan_plugins("/usr/local/share/screensaver/plugins", "saver");
|
||||||
|
#endif
|
||||||
std::unique_ptr<ScreensaverPlugin> saver;
|
std::unique_ptr<ScreensaverPlugin> saver;
|
||||||
|
|
||||||
int opt_char, opt_val;
|
int opt_char, opt_val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user