]> git.armaanb.net Git - chorizo.git/blobdiff - Makefile
Rename web_extensions to web-extensions
[chorizo.git] / Makefile
index 42185bb1e4550fd3ca2111ee44d1c27b11e62833..fe0f4aba950f9f6fdbe345a7a2f863aeba0b00fd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,11 @@
 CFLAGS += -Wall -Wextra -Wno-unused-parameter -O3
 
-prefix = /usr/local
-exec_prefix = $(prefix)
-bindir = $(DESTDIR)$(exec_prefix)/bin
-libdir = $(DESTDIR)$(exec_prefix)/lib
-datadir = $(DESTDIR)$(prefix)/share
-mandir = $(DESTDIR)$(datadir)/man
-docdir = $(DESTDIR)$(datadir)/doc
+PREFIX = /usr/local
+bindir = $(DESTDIR)$(PREFIX)/bin
+libdir = $(DESTDIR)$(PREFIX)/lib
+datadir = $(DESTDIR)$(PREFIX)/share
+mandir = $(datadir)/man
+docdir = $(datadir)/doc
 
 .PHONY: man clean uninstall install extensions
 
@@ -22,7 +21,7 @@ chorizo:
        $(CC) $(CFLAGS) $(LDFLAGS) \
                -D__NAME__=\"chorizo\" \
                -D__NAME_UPPERCASE__=\"CHORIZO\" \
-               -DVERSION=\"v21.01\" \
+               -DVERSION=\"v1.0.0\" \
                -o chorizo src/*.c \
                `pkg-config --cflags --libs gtk+-3.0 glib-2.0 webkit2gtk-4.0`
 
@@ -38,8 +37,9 @@ extensions:
 
 install: all
        mkdir -p $(bindir) \
-               $(mandir) \
-               $(libdir)/chorizo/web_extensions \
+               $(mandir)/man1 \
+               $(mandir)/man5 \
+               $(libdir)/chorizo/web-extensions \
                $(datadir)/chorizo/user-scripts \
                $(datadir)/applications \
                $(docdir)/chorizo
@@ -49,7 +49,7 @@ install: all
        cp man/*.5 $(mandir)/man5/
        cp chorizo.ini $(docdir)/chorizo/
        cp chorizo.desktop $(datadir)/applications/
-       cp -r extensions/*.so $(libdir)/chorizo/web_extensions/
+       cp -r extensions/*.so $(libdir)/chorizo/web-extensions/
        cp -r user-scripts/* $(datadir)/chorizo/user-scripts/
 
 uninstall: