summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-05-15 23:35:32 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2022-05-15 23:35:32 +0200
commitb6ecf4698e25b92b5b2c7bcf11d28e7ec9d64038 (patch)
treee5351f85127dbbcce425baf79c3b13a07dd901a2 /Makefile
parentinitial commit (diff)
downloadprijave-b6ecf4698e25b92b5b2c7bcf11d28e7ec9d64038.tar
prijave-b6ecf4698e25b92b5b2c7bcf11d28e7ec9d64038.tar.gz
prijave-b6ecf4698e25b92b5b2c7bcf11d28e7ec9d64038.tar.bz2
prijave-b6ecf4698e25b92b5b2c7bcf11d28e7ec9d64038.tar.lz
prijave-b6ecf4698e25b92b5b2c7bcf11d28e7ec9d64038.tar.xz
prijave-b6ecf4698e25b92b5b2c7bcf11d28e7ec9d64038.tar.zst
prijave-b6ecf4698e25b92b5b2c7bcf11d28e7ec9d64038.zip
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