summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a49d1dc..2007c1b 100644
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,11 @@ PROJ = prijave
.NOTPARALLEL:
default:
$(CC) -L. $(cflags) $(CFLAGS) $(PROJ).c $(ldflags) $(LDFLAGS) -o$(PROJ)
-install:
- mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/etc
+
+install: default
+ mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/etc $(DESTDIR)/usr/share/$(PROJ)
cp $(PROJ) $(DESTDIR)/usr/bin/
+ cp *.html $(DESTDIR)/usr/share/$(PROJ)/
-[ ! -f $(DESTDIR)/etc/$(PROJ) ] && cp $(PROJ).conf $(DESTDIR)/etc/$(PROJ)
distclean: clean