summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-04-27 14:54:50 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-04-27 14:54:50 +0200
commit0d2646b246def5144dee17963d165fb222b27d26 (patch)
tree21475f9850d31a83d65e5f6692daca28355ae5c5 /Makefile
parentinitial commit (diff)
downloadircxmpp-0d2646b246def5144dee17963d165fb222b27d26.tar
ircxmpp-0d2646b246def5144dee17963d165fb222b27d26.tar.gz
ircxmpp-0d2646b246def5144dee17963d165fb222b27d26.tar.bz2
ircxmpp-0d2646b246def5144dee17963d165fb222b27d26.tar.lz
ircxmpp-0d2646b246def5144dee17963d165fb222b27d26.tar.xz
ircxmpp-0d2646b246def5144dee17963d165fb222b27d26.tar.zst
ircxmpp-0d2646b246def5144dee17963d165fb222b27d26.zip
Diffstat (limited to '')
-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