blob: 5f4e80d01afb0a6dd974e72f19ef4f29453af80d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
prefix = /usr/local
libdir = $(prefix)/lib
systemdsystemunitdir = $(prefix)/lib/systemd/system
INSTALL = install
RM = rm -f
RMDIR = rmdir
SED = sed
all:
install:
$(INSTALL) -m 0755 -d $(DESTDIR)$(libdir)/cgit
$(INSTALL) -m 0755 syntax-highlighting-server.py $(DESTDIR)$(libdir)/cgit/syntax-highlighting-server.py
$(INSTALL) -m 0755 -d $(DESTDIR)$(libdir)/cgit/filters
$(INSTALL) -m 0755 syntax-highlighting-client.sh $(DESTDIR)$(libdir)/cgit/filters/syntax-highlighting-client.sh
$(INSTALL) -m 0755 -d $(DESTDIR)$(systemdsystemunitdir)
$(SED) -e 's:@libdir@:$(libdir):' syntax-highlighting.service.in > $(DESTDIR)$(systemdsystemunitdir)/syntax-highlighting.service
uninstall:
$(RM) $(DESTDIR)$(libdir)/cgit/syntax-highlighting-server.py
$(RM) $(DESTDIR)$(libdir)/cgit/filters/syntax-highlighting-client.sh
$(RM) $(DESTDIR)$(systemdsystemunitdir)/syntax-highlighting.service
|