From af208844b575edb6ce9205507289a00743a8bf4e Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 14 Mar 2024 19:31:04 -0300 Subject: reorg makefile and make runtime locations less messy In particular, stop using the installation directory for anything and instead move to /opt/rosenrot The user specific cache remains at /home/user/.cache --- plugins/plugins.mk | 14 ++++++++++++++ plugins/stand_in/stand_in.c | 3 +++ plugins/stand_in/stand_in.h | 1 + 3 files changed, 18 insertions(+) create mode 100644 plugins/plugins.mk (limited to 'plugins') diff --git a/plugins/plugins.mk b/plugins/plugins.mk new file mode 100644 index 0000000..f95cac7 --- /dev/null +++ b/plugins/plugins.mk @@ -0,0 +1,14 @@ +## Plugins +CUSTOM_STYLES=./plugins/style/style.c +SHORTCUTS=./plugins/shortcuts/shortcuts.c +READABILITY=./plugins/readability/readability.c +LIBRE_REDIRECT=./plugins/libre_redirect/libre_redirect.c ./plugins/libre_redirect/str_replace_start.c ./plugins/libre_redirect/str_init.c + +ADBLOCK='-L/usr/lib/wyebrowser/adblock.so' # optional adblocking; depends on https://github.com/jun7/wyebadblock + +STAND_IN=./plugins/stand_in/stand_in.c # gives function definitions for the above, which do nothing + +PLUGINS=$(CUSTOM_STYLES) $(SHORTCUTS) $(READABILITY) $(LIBRE_REDIRECT) +# PLUGINS=$(STAND_IN) + + diff --git a/plugins/stand_in/stand_in.c b/plugins/stand_in/stand_in.c index dbcc7e8..cb8c487 100644 --- a/plugins/stand_in/stand_in.c +++ b/plugins/stand_in/stand_in.c @@ -25,3 +25,6 @@ void read_style_js(char* string){ } +int shortcut_expand(const char* uri, char* output){ + return 0; +} diff --git a/plugins/stand_in/stand_in.h b/plugins/stand_in/stand_in.h index 062acf7..10f4283 100644 --- a/plugins/stand_in/stand_in.h +++ b/plugins/stand_in/stand_in.h @@ -21,3 +21,4 @@ void read_readability_js(char* string); void read_style_js(char* string); +int shortcut_expand(const char* uri, char* output); -- cgit v1.2.3