From d7b4dc72fe0651c93ead3991dd61f0c2eb38f44b Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 1 Jul 2022 13:11:40 -0400 Subject: [PATCH] Create Makefile package step --- .gitignore | 1 + Makefile | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ca8c639..ed5ec6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ progs.dat progs.lno +build/ diff --git a/Makefile b/Makefile index 3e46fae..da943a6 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ OUTPUT=$(MODDIR)/$(PROGS) FGD=ntcn.fgd FGD_OUT=$(MODDIR)/$(FGD) -.PHONY: all chkdir install clean +.PHONY: all chkdir install package clean all: $(PROGS) @@ -18,9 +18,18 @@ chkdir: install: chkdir all $(OUTPUT) $(FGD_OUT) +package: all $(PROGS) $(FGD) + mkdir -p build/ntcn + cp $(PROGS) build/ntcn/ + cp $(FGD) build/ntcn/ + cp README.md build/ntcn/ + rm -f build/ntcn.zip + zip -r build/ntcn.zip build/ntcn + clean: rm -f progs.dat rm -f progs.lno + rm -rf build/ $(PROGS): *.qc progs.src