publish: support makefile

generated from commit a71362a1b1825e78dfca011c5e145caf9844c650