IPATH=-I /code/linux-2.6/include -dir /code/linux-2.6 COCCI_ARGS=-include_headers -no_show_diff -allow_inconsistent_paths $(IPATH) COCCI_BUG_ARGS=-include_headers -no_show_diff -no_includes $(IPATH) # --------------------------------------------------------------------------- categorize: categorize.cocci ../initialize categorize.cocci $(COCCI_ARGS) filter: categorize grep "category 1" categorize > categories1 grep "category 2" categorize > categories2 grep "category 3" categorize > categories3 grep "category 4" categorize > categories4 # --------------------------------------------------------------------------- categories_for1: categorize grep category1 categorize > categories_for1 grep category2 categorize >> categories_for1 grep category3 categorize >> categories_for1 grep category_none categorize >> categories_for1 cat1a: categories_for1 category1a.cocci ../instantiate categories_for1 category1 category1a.cocci ../make_org_bug_report category1a cat1abugs $(COCCI_BUG_ARGS) cat1b: categories_for1 category1b.cocci ../instantiate categories_for1 category1 category1b.cocci ../make_org_bug_report category1b cat1bbugs $(COCCI_BUG_ARGS) # --------------------------------------------------------------------------- categories_for2: categorize grep category1 categorize > categories_for2 grep category2 categorize >> categories_for2 grep category3 categorize >> categories_for2 grep category_none categorize >> categories_for2 cat2a: categories_for2 category2a.cocci ../instantiate categories_for2 category2 category2a.cocci ../make_org_bug_report category2a cat2abugs $(COCCI_BUG_ARGS) cat2b: categories_for2 category2b.cocci ../instantiate categories_for2 category2 category2b.cocci ../make_org_bug_report category2b cat2bbugs $(COCCI_BUG_ARGS) # --------------------------------------------------------------------------- categories_for3: categorize grep category3 categorize >> categories_for3 cat3: categories_for3 category3.cocci ../instantiate categories_for3 category3 category3.cocci ../make_org_bug_report category3 cat3bugs $(COCCI_BUG_ARGS) # --------------------------------------------------------------------------- categories_for4: categorize grep category1 categorize > categories_for4 grep category2 categorize >> categories_for4 grep category3 categorize >> categories_for4 grep category4 categorize >> categories_for4 grep category_none categorize >> categories_for4 cat4a: categories_for4 category1a.cocci ../instantiate categories_for4 category4 category1a.cocci ../make_org_bug_report category1a cat4abugs $(COCCI_BUG_ARGS) cat4b: categories_for4 category2a.cocci ../instantiate categories_for4 category4 category2a.cocci ../make_org_bug_report category2a cat4bbugs $(COCCI_BUG_ARGS) # --------------------------------------------------------------------------- categories_for_none: categorize grep category3 categorize >> categories_for_none grep category_none categorize >> categories_for_none catnone: categories_for_none nothing.cocci ../instantiate categories_for_none category_none nothing.cocci