Skip to content

Commit

Permalink
Create Makefile package step
Browse files Browse the repository at this point in the history
  • Loading branch information
4LT committed Jul 1, 2022
1 parent 3f5e1f1 commit d7b4dc7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
progs.dat
progs.lno
build/
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit d7b4dc7

Please sign in to comment.