diff options
Diffstat (limited to 'Makefile')
-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 |