diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,4 +1,6 @@ CFLAGS?=-O0 -g +CC?=gcc +INSTALL?=install RODISC_PKGCONFIG:=glib-2.0 gobject-2.0 gio-unix-2.0 libsoup-2.4 avahi-gobject RODISC_CFLAGS:=-Wall $(shell pkg-config --cflags $(RODISC_PKGCONFIG)) @@ -15,4 +17,16 @@ rodiscd: rodisc.o udisks.o udisks-device.o clean: rm -f *.o rodiscd -.PHONY: all clean +install: rodiscd + $(INSTALL) -s rodiscd $(DESTDIR)/usr/sbin/rodiscd + +uninstall: + rm -f $(DESTDIR)/usr/sbin/rodiscd + +install-gentoo: install + $(INSTALL) rodiscd.init.gentoo $(DESTDIR)/etc/init.d/rodiscd + +uninstall-gentoo: uninstall + rm -f $(DESTDIR)/etc/init.d/rodiscd + +.PHONY: all clean install uninstall install-gentoo uninstall-gentoo |