This way there is no hardcoded /usr/lib/rigo, and the "executable" part is in a well known location which can be replicated on system for different Python implementations. (As in: it will be like /usr/bin/foo.py which on Gentoo links to a system wrapper making it use configured Python.)
20 lines
517 B
Makefile
20 lines
517 B
Makefile
SUBDIRS = dbus polkit
|
|
PREFIX = /usr
|
|
BINDIR = $(PREFIX)/bin
|
|
LIBDIR = $(PREFIX)/lib
|
|
LIBEXECDIR = $(PREFIX)/libexec
|
|
DESTDIR =
|
|
|
|
all:
|
|
for d in $(SUBDIRS); do $(MAKE) -C $$d; done
|
|
|
|
install:
|
|
install -d $(DESTDIR)$(LIBEXECDIR)
|
|
install -d $(DESTDIR)$(LIBDIR)/rigo/RigoDaemon
|
|
install -m 644 $(wildcard *.py) $(DESTDIR)$(LIBDIR)/rigo/RigoDaemon/
|
|
install -m 755 app/RigoDaemon_app.py $(DESTDIR)$(LIBEXECDIR)/
|
|
for d in $(SUBDIRS); do $(MAKE) -C $$d install; done
|
|
|
|
clean:
|
|
for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
|