cld-ssg

The static site generator (to be) used for hellocld.com
git clone git://git.hellocld.com/cld-ssg
Log | Files | Refs

commit 2ec832282e9583b1b1bf41650e28fd8cc2071df0
parent f9dbb74da357b45583858bcf65f1f62764e2d3ff
Author: Christopher Ray Langford <chris@hellocld.com>
Date:   Tue,  1 Oct 2019 16:07:32 -0400

Added some install/uninstall options to the makefile

Diffstat:
MMakefile | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -2,6 +2,8 @@ CC = gcc CFLAGS = -g -Wall -pedantic CLIBS = -lcmark +INSTALLDIR = /usr/local/bin/ + default: dirs main.c config.h util $(CC) $(CFLAGS) main.c ./bin/util.o -o ./bin/cld-ssg $(CLIBS) @@ -14,4 +16,10 @@ util: util.h util.c clean: if [ -d ./bin ] ; then rm -rf ./bin/* ; fi +install: clean default + cp -f ./bin/cld-ssg $(INSTALLDIR) + +uninstall: + rm -f $(INSTALLDIR)cld-ssg +.PHONY: clean install uninstall