diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-04-27 14:54:50 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-04-27 14:54:50 +0200 |
commit | 0d2646b246def5144dee17963d165fb222b27d26 (patch) | |
tree | 21475f9850d31a83d65e5f6692daca28355ae5c5 /Makefile | |
parent | initial commit (diff) | |
download | ircxmpp-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-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |