summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-03-06 18:59:57 -0500
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-03-06 18:59:57 -0500
commit361d396d01f6cdeb49970c0eeb705da442879f05 (patch)
treeb0ebbccecf38e857418e4e52641ceaf757f61206 /Makefile
downloadcgit-syntax-highlighting-361d396d01f6cdeb49970c0eeb705da442879f05.tar.xz
cgit-syntax-highlighting-361d396d01f6cdeb49970c0eeb705da442879f05.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ad366da
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+prefix = /usr/local
+libdir = $(prefix)/lib
+systemdsystemunitdir = $(libdir)/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