Skip to content

Commit

Permalink
feat(Makefile): add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Reanon committed Mar 26, 2023
1 parent 52a346c commit 0946330
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ASGDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from parser import parameter_parser
from graph_generator.generate_gmn_data import contract_data, create_gmn_data
from graph_generator.generate_graph import create_ast, create_separate_graph
from model.GMN import *
from model.gmn import *
from torch_geometric.data import Data, DataLoader

args = parameter_parser()
Expand Down
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

CUR_DIR = $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
BUILD_DIR = $(CUR_DIR)/build/
COMMON_DIR := $(wildcard $(CUR_DIR)/common)

all:ASGVulDetector

dependency:
pip3 install -r requirements.txt

BASGVulDetector:
@echo "ASGVulDetector"
@echo ${CUR_DIR}
@echo ${BUILD_DIR}"ASGVulDetector"
@echo ${COMMON_DIR}

ASGVulDetector:
@echo "ASGVulDetector"
@echo ${CUR_DIR}
@echo ${BUILD_DIR}"ASGVulDetector"
@echo ${COMMON_DIR}

benchmark:
@mkdir -p build/

clean:
@rm -rf build > /dev/null 2>&1|| true

.PHONY: all benchmark check dependency clean banner-watcher

.DEFAULT: all
Empty file added common/__init__.py
Empty file.
Empty file added common/lib/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.

0 comments on commit 0946330

Please sign in to comment.