# # Auto-generate thingies # This file is part of LuaSrcDiet. # # by Kein-Hong Man , PUBLIC DOMAIN # LUA = LUA_PATH=../?.lua lua LUAC = luac LUASRCDIET = ../bin/luasrcdiet SOURCE = LuaSrcDiet.lua APPSAMPLES = app_default.lua \ app_basic.lua \ app_maximum.lua \ app_experimental.lua \ opt_comments.lua \ opt_whitespace.lua \ opt_emptylines.lua \ opt_locals.lua APPREPORTS = app_default.lua.txt \ app_basic.lua.txt \ app_maximum.lua.txt \ app_experimental.lua.txt GENSAMPLES = numbers_on_diet.lua \ strings_on_diet.lua \ dump-llex-lexer.dat \ dump-llex-parser.dat \ llex-plugin-output.html \ experimental1_output.lua all: $(APPSAMPLES) $(GENSAMPLES) # samples for major processing options app_default.lua: $(SOURCE) $(LUA) $(LUASRCDIET) $( $(@F).txt app_basic.lua: $(SOURCE) $(LUA) $(LUASRCDIET) $( $(@F).txt app_maximum.lua: $(SOURCE) $(LUA) $(LUASRCDIET) $( $(@F).txt app_experimental.lua: $(SOURCE) $(LUA) $(LUASRCDIET) $( $(@F).txt # samples for individual options opt_comments.lua: $(SOURCE) $(LUA) $(LUASRCDIET) $( $@ dump-llex-parser.dat: llex.lua $(LUA) $(LUASRCDIET) $< --dump-parser > $@ llex-plugin-output.html: llex.lua $(LUA) $(LUASRCDIET) $< -o $@ --plugin html --quiet experimental1_output.lua: experimental1.lua $(LUA) $(LUASRCDIET) $< -o $@ --none --opt-experimental --noopt-srcequiv --quiet # housekeeping clean: rm -f $(APPSAMPLES) $(APPREPORTS) $(GENSAMPLES) .PHONY: all clean