makefile
authorNiki Roo <niki@nikiroo.be>
Sun, 30 Jun 2024 10:37:32 +0000 (12:37 +0200)
committerNiki Roo <niki@nikiroo.be>
Sun, 30 Jun 2024 10:37:32 +0000 (12:37 +0200)
src/cbook/makefile.d

index 54085c1f74461ee8ef3cf68c334c735d9e1d7c2b..87654a0c7cc4d18c3a2928b70bf6e1bdd1d88e52 100644 (file)
@@ -60,3 +60,11 @@ mrpropre: clean
        rm -f $(dstdir)/$(NAME)
        rmdir $(dstdir) 2>/dev/null || true
 
+install: 
+       mkdir -p "$(PREFIX)/bin"
+       cp $(dstdir)/$(NAME) "$(PREFIX)/bin/"
+
+uninstall:
+       rm "$(PREFIX)/bin/$(NAME)"
+       rmdir "$(PREFIX)/bin" 2>/dev/null
+