summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 13dfd0d..26f6f02 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@ DESTDIR=/
CC = cc
cflags = -O0 -Wall -I. -Wextra -pedantic -g $(shell pkg-config --cflags libstrophe)
SRCFILE = main.c
+CFGFILE = ircxmpp.conf
+CFGDEST = ircxmpp
ldflags = $(shell pkg-config --libs libstrophe) -lircclient
BINFILE = ircxmpp
# cflags and ldflags are used so that users specifying CFLAGS and LDFLAGS do not override my flags
@@ -11,8 +13,9 @@ default:
$(CC) $(cflags) $(CFLAGS) $(SRCFILE) $(ldflags) $(LDFLAGS) -o$(BINFILE)
install:
- mkdir -p $(DESTDIR)/usr/bin/
+ mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/etc
cp $(BINFILE) $(DESTDIR)/usr/bin/
+ cp $(CFGFILE) $(DESTDIR)/etc/$(CFGDEST)
distclean:
rm $(BINFILE) tmp -rf