chiark / gitweb /
Create elogind-inhibit.xml
[elogind.git] / Makefile
index ae82e8ce889e059db57a1bb14d8b4cdd7ee52d82..4de99579acd0640232e511c88fa028dbc6d4b9c1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,16 @@
-CFLAGS=-Wall -Wextra -O0 -g -pipe -D_GNU_SOURCE -fdiagnostics-show-option -Wno-unused-parameter
-LIBS=-lrt
+.PHONY: all install loginctl test test-login
 
-systemd: main.o name.o util.o set.o hashmap.o strv.o job.o manager.o conf-parser.o load-fragment.o socket-util.c
-       $(CC) $(CFLAGS) -o $@ $^  $(LIBS)
+all:
+       ninja -C build
 
-clean:
-       rm -f *.o systemd
+install:
+       DESTDIR=$(DESTDIR) ninja -C build install
+
+loginctl:
+       ninja -C build loginctl
+
+test:
+       ninja -C build test
+
+test-login:
+       ninja -C build test-login