aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5ff7614..b8bbb7a 100644
--- a/Makefile
+++ b/Makefile
@@ -21,8 +21,16 @@ conf-update.h: core.h helpers.h index.h modified.h config.h
conf-update: core.o helpers.o conf-update.o index.o modified.o config.o
$(CC) $(LDFLAGS) -o conf-update config.o core.o helpers.o conf-update.o index.o modified.o $$(pkg-config --libs glib-2.0) -lncurses -lmenu -lcrypto
-.PHONY: clean
+install: conf-update
+ @install -d $(DESTDIR)/usr/sbin/
+ @install conf-update $(DESTDIR)/usr/sbin/
+ @install -d $(DESTDIR)/etc
+ @install -m 644 conf-update.conf $(DESTDIR)/etc
+ @install -d $(DESTDIR)/usr/share/man/man1
+ @install -m 644 conf-update.1 $(DESTDIR)/usr/share/man/man1
clean:
rm -f *.o
rm -f conf-update
+
+.PHONY: all clean