mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
Support for installing plugin headers to system include/finit/ directory.
Minor cleanup of Makefile and added support for installing necessary header files, for developing external plugins, to system include path. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
06759d3544
commit
9aa90763b0
2 files changed
+27
-5
No files matched your search
@@ -1,3 +1,12 @@
|
||||
1.3 (20120928)
|
||||
- Cleanup public plugin API a bit and add new pid/pidfile funcs
|
||||
- Add plugin hook to end of service startup
|
||||
- Remove finit.h from svc.h, plugins should not need this.
|
||||
- Move utility macros etc. to helpers.h
|
||||
- Make finit.h daemon internal, only
|
||||
- Move defines of FIFO, conf and rcS.d to Makefile => correct paths
|
||||
- Add support for installing required headers in system include dir
|
||||
|
||||
1.2 (20120927)
|
||||
- Fix installation paths encoded in finit binary
|
||||
- Update README with section on building and enviroment variables
|
||||
|
||||
@@ -29,6 +29,8 @@ ROOTDIR ?= $(shell pwd)
|
||||
# Installation paths, always prepended with DESTDIR if set
|
||||
prefix ?= /usr/local
|
||||
sysconfdir ?= /etc
|
||||
incdir = $(prefix)/include/finit
|
||||
sbindir = $(prefix)/sbin
|
||||
datadir = $(prefix)/share/doc/finit
|
||||
mandir = $(prefix)/share/man/man8
|
||||
|
||||
@@ -44,6 +46,7 @@ VERSION ?= 1.2
|
||||
EXEC = finit
|
||||
PKG = $(EXEC)-$(VERSION)
|
||||
ARCHIVE = $(PKG).tar.xz
|
||||
HEADERS = plugin.h svc.h helpers.h
|
||||
OBJS = finit.o conf.o helpers.o sig.o svc.o plugin.o
|
||||
OBJS += strlcpy.o
|
||||
SRCS = $(OBJS:.o=.c)
|
||||
@@ -72,18 +75,28 @@ $(EXEC): $(OBJS)
|
||||
install: all
|
||||
@install -d $(DESTDIR)$(prefix)/sbin
|
||||
@install -d $(DESTDIR)$(sysconfdir)
|
||||
@install -d $(DESTDIR)$(sbindir)
|
||||
@install -d $(DESTDIR)$(incdir)
|
||||
@install -d $(DESTDIR)$(datadir)
|
||||
@install -d $(DESTDIR)$(mandir)
|
||||
@for file in $(EXEC); do \
|
||||
printf " INSTALL $(DESTDIR)$(prefix)/sbin/$$file\n"; \
|
||||
install -m 0755 $$file $(DESTDIR)$(prefix)/sbin/$$file; \
|
||||
printf " INSTALL $(DESTDIR)$(sbindir)/$$file\n"; \
|
||||
install -m 0755 $$file $(DESTDIR)$(sbindir)/$$file; \
|
||||
done
|
||||
@for file in $(HEADERS); do \
|
||||
printf " INSTALL $(DESTDIR)$(incdir)/$$file\n"; \
|
||||
install -m 0644 $$file $(DESTDIR)$(incdir)/$$file; \
|
||||
done
|
||||
$(MAKE) -C plugins $@
|
||||
|
||||
uninstall:
|
||||
-@for file in $(EXEC); do \
|
||||
printf " REMOVE $(DESTDIR)$(prefix)/sbin/$$file\n"; \
|
||||
rm $(DESTDIR)$(prefix)/sbin/$$file 2>/dev/null; \
|
||||
-@for file in $(EXEC); do \
|
||||
printf " REMOVE $(DESTDIR)$(sbindir)/$$file\n"; \
|
||||
rm $(DESTDIR)$(sbindir)/$$file 2>/dev/null; \
|
||||
done
|
||||
-@for file in $(HEADERS); do \
|
||||
printf " REMOVE $(DESTDIR)$(incdir)/$$file\n"; \
|
||||
rm $(DESTDIR)$(incdir)/$$file 2>/dev/null; \
|
||||
done
|
||||
$(MAKE) -C plugins $@
|
||||
|
||||
|
||||
Reference in new issue
Block a user