diff options
author | Michal Hruby <michal.mhr@gmail.com> | 2010-06-07 21:50:44 +0200 |
---|---|---|
committer | Michal Hruby <michal.mhr@gmail.com> | 2010-06-07 21:50:44 +0200 |
commit | f26aeb626bf8a92dd70433837caab4b69797ffa1 (patch) | |
tree | 0180dcb4e2c7ecfff1958df994fabaf93c265f54 /geany | |
parent | 918c2532a5d462a37d9b041558246ff77130989b (diff) |
Use autotools for most plugins (FF still missing)
Diffstat (limited to 'geany')
-rw-r--r-- | geany/Makefile | 27 | ||||
-rw-r--r-- | geany/Makefile.am | 35 |
2 files changed, 35 insertions, 27 deletions
diff --git a/geany/Makefile b/geany/Makefile deleted file mode 100644 index 9ae04e0..0000000 --- a/geany/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -GEANY_PLUGIN_DIR = ~/.config/geany/plugins -PLUGIN_FILE = zeitgeist_dataprovider.so - -all: clean build - -zeitgeist_dataprovider.o: - gcc -c zeitgeist_dataprovider.c -fPIC `pkg-config --cflags geany zeitgeist-1.0` - -zeitgeist_dataprovider.so: - gcc zeitgeist_dataprovider.o -o zeitgeist_dataprovider.so -shared `pkg-config --libs geany zeitgeist-1.0` - -build: zeitgeist_dataprovider.o zeitgeist_dataprovider.so - -clean: - -rm -f *.o - -rm -f *.so - -install: ; - -uninstall: ; - -local-install: - mkdir -p $(GEANY_PLUGIN_DIR) - cp $(PLUGIN_FILE) $(GEANY_PLUGIN_DIR) - -local-uninstall: - -rm -f $(GEANY_PLUGIN_DIR)/$(PLUGIN_FILE) diff --git a/geany/Makefile.am b/geany/Makefile.am new file mode 100644 index 0000000..6edcb45 --- /dev/null +++ b/geany/Makefile.am @@ -0,0 +1,35 @@ +geanyplugindir = $(libdir)/geany/plugins +geanyplugin_LTLIBRARIES = zeitgeist_dataprovider.la + +zeitgeist_dataprovider_la_SOURCES = \ + zeitgeist_dataprovider.c +zeitgeist_dataprovider_la_CFLAGS = \ + -fPIC -Wall -std=c99 \ + $(ZEITGEIST_CFLAGS) \ + $(GEANY_CFLAGS) \ + $(NULL) + +zeitgeist_dataprovider_la_LIBADD = \ + $(ZEITGEIST_LIBS) \ + $(GEANY_LIBS) \ + $(NULL) +zeitgeist_dataprovider_la_LDFLAGS = \ + -module -avoid-version \ + $(NULL) + +# we want to allow also local install +GEANY_PLUGIN_HOME_DIR = ~/.config/geany/plugins + +PLUGIN_FILES = zeitgeist_dataprovider.so + +local-install: + mkdir -p $(GEANY_PLUGIN_HOME_DIR) + cp $(PLUGIN_FILES) $(GEANY_PLUGIN_HOME_DIR) + +local-uninstall: + for f in $(PLUGIN_FILES); \ + do \ + echo remove $$f; \ + rm -f $(GEANY_PLUGIN_HOME_DIR)/$$f; \ + done + |