diff options
author | Krow Savcik <krow@savcik.xyz> | 2024-01-07 15:18:29 +0200 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2024-01-07 15:18:29 +0200 |
commit | 5138d33e0c0adb0c4d13977af047e375eee934d8 (patch) | |
tree | 543825c957813dca637acacc8e5b7574c0979fb3 /Makefile |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dd9869f --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +include config.mk + +build: config.h + ${CC} -ljson-c wcli-gen.c -o wcli-gen + ${CC} wcli.c -o wcli + +config.h: config.def.h + cp config.def.h config.h + +install: build + mkdir -p $(PREFIX)/bin + cp -f wcli wcli-gen wcli-query $(PREFIX)/bin + chmod 755 ${PREFIX}/bin/wcli + chmod 755 ${PREFIX}/bin/wcli-gen + chmod 755 ${PREFIX}/bin/wcli-query + +uninstall: + rm -f ${PREFIX}/bin/wcli\ + ${PREFIX}/bin/wcli-gen\ + ${PREFIX}/bin/wcli-query + +clean: + rm wcli wcli-gen + +.PHONY: build install uninstall clean |