rcx

library of miscellaneous bits of C code
git clone git://git.rr3.xyz/rcx
Log | Files | Refs | README | LICENSE

commit 317159c94f8002e988efa73e8d00ee03649d180e
parent 195f2b610a75a7e5a5e5efc5c38eeef162f39685
Author: Robert Russell <robertrussell.72001@gmail.com>
Date:   Fri,  2 Sep 2022 11:40:50 -0700

Add install and uninstall targets

Diffstat:
MMakefile | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -37,7 +37,17 @@ gen: tool/ucattab: tool/ucattab.c src/alloc.o src/log.o src/str.o $(CC) -o $@ $(CFLAGS) $^ +install: libcext.a + mkdir -p $(DESTDIR)$(INCPREFIX) + cp -rf inc/cext $(DESTDIR)$(INCPREFIX)/ + mkdir -p $(DESTDIR)$(LIBPREFIX) + cp -f libcext.a $(DESTDIR)$(LIBPREFIX)/ + +uninstall: + rm -rf $(DESTDIR)$(INCPREFIX)/cext + rm -f $(DESTDIR)$(LIBPREFIX)/libcext.a + clean: rm -rf libcext.a $(SRC:.c=.o) gen -.PHONY: clean +.PHONY: install uninstall clean