]> git.armaanb.net Git - stagit.git/blobdiff - Makefile
First commit
[stagit.git] / Makefile
index f94e8e9f0ea0277d91761d5f6031d05d3a7e38b2..1effc071d0e21c26730dd007b9dea17a0b76bfca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,8 +24,8 @@ COMPATSRC = \
        strlcat.c\
        strlcpy.c
 BIN = \
-       stagit.out\
-       stagit-index.out
+       stagit\
+       stagit-index
 MAN1 = \
        stagit.1\
        stagit-index.1
@@ -53,7 +53,7 @@ dist:
        rm -rf ${NAME}-${VERSION}
        mkdir -p ${NAME}-${VERSION}
        cp -f ${MAN1} ${HDR} ${SRC} ${COMPATSRC} ${DOC} \
-               Makefile favicon.png logo.png style.css \
+               Makefile favicon.png logo.png style.css syntax.css highlight.py \
                example_create.sh example_post-receive.sh \
                ${NAME}-${VERSION}
        # make tarball
@@ -63,11 +63,11 @@ dist:
 
 ${OBJ}: ${HDR}
 
-stagit.out: stagit.o ${COMPATOBJ} requirements.txt
+stagit: stagit.o ${COMPATOBJ} requirements.txt
        pip3 install -r requirements.txt
        ${CC} -o $@ stagit.o ${COMPATOBJ} ${STAGIT_LDFLAGS}
 
-stagit-index.out: stagit-index.o ${COMPATOBJ}
+stagit-index: stagit-index.o ${COMPATOBJ}
        ${CC} -o $@ stagit-index.o ${COMPATOBJ} ${STAGIT_LDFLAGS}
 
 clean:
@@ -81,11 +81,13 @@ install: all
        # installing example files.
        mkdir -p ${DESTDIR}${DOCPREFIX}
        cp -f style.css\
+               syntax.css\
                favicon.png\
                logo.png\
                example_create.sh\
                example_post-receive.sh\
                README\
+               highlight.py\
                ${DESTDIR}${DOCPREFIX}
        # installing manual pages.
        mkdir -p ${DESTDIR}${MANPREFIX}/man1
@@ -98,6 +100,8 @@ uninstall:
        # removing example files.
        rm -f \
                ${DESTDIR}${DOCPREFIX}/style.css\
+               ${DESTDIR}${DOCPREFIX}/syntax.css\
+               ${DESTDIR}${DOCPREFIX}/highlight.py\
                ${DESTDIR}${DOCPREFIX}/favicon.png\
                ${DESTDIR}${DOCPREFIX}/logo.png\
                ${DESTDIR}${DOCPREFIX}/example_create.sh\