Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit c6b116e

Browse files
committed
Install data files on 'make install'
1 parent de8231d commit c6b116e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ CFLAGS=-g -flto -std=c99 -Wvla -pedantic -Wall -Wextra -I. $(shell bash docs/git
44
prefix=/usr/local
55
exec_prefix=$(prefix)
66
bindir=$(exec_prefix)/bin
7+
datarootdir=$(prefix)/share
8+
datadir=$(datarootdir)
79

810
INSTALL=install
911
INSTALL_PROGRAM=$(INSTALL)
12+
INSTALL_DATA=$(INSTALL) -m 644
1013

1114
SYNTAXES = $(patsubst %.c, %.o, $(wildcard syntax/*.c))
1215
HEADERS = $(wildcard bim-*.h)
@@ -28,6 +31,8 @@ distclean: clean
2831
install: all
2932
mkdir -p $(DESTDIR)$(bindir)
3033
$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
34+
mkdir -p $(DESTDIR)$(datadir)/bim/themes
35+
$(INSTALL_DATA) themes/*.bimscript $(DESTDIR)$(datadir)/bim/themes/
3136

3237
install-strip: all
3338
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install

0 commit comments

Comments
 (0)