From f66bad59d20e6a10b8cb1d0808f6c6004b8628fa Mon Sep 17 00:00:00 2001 From: José María Alonso Date: Mon, 6 Feb 2012 11:40:45 +0100 Subject: Added install phase --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3-65-gdbad