Rewrite Makefile and don't let it complie at the second time.
because the marco "EXTRA_CFLAGS=-DIGB_PTP" will lost at the second time complie.
Change-Id: Ibcea3779a9b825a96da75c2f0f3e4bbd51044c83
Signed-off-by: olive <dongdongx.li@intel.com>
$(MANFILE).gz: $(MANFILE)
gzip -c $< > $@
-install: default
+install:
# remove all old versions of the driver
find $(INSTALL_MOD_PATH)/lib/modules/$(KVER) -name $(TARGET) -exec rm -f {} \; || true
find $(INSTALL_MOD_PATH)/lib/modules/$(KVER) -name $(TARGET).gz -exec rm -f {} \; || true