]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - scripts/genksyms/Makefile
hwmon: Use linux/of_platform.h instead of asm
[linux-2.6-omap-h63xx.git] / scripts / genksyms / Makefile
index 5875f29a86025a35be4f7ab18dc545adbcdd4b76..e420fe440019fd7c1ea8c0a80319f68bd6f4983b 100644 (file)
@@ -23,14 +23,16 @@ quiet_cmd_keywords.c = GPERF   $@
 
 $(obj)/keywords.c: $(obj)/keywords.gperf FORCE
        $(call if_changed,keywords.c)
+       cp $@ $@_shipped
 
 # flex
 
 quiet_cmd_lex.c = FLEX    $@
-      cmd_lex.c = flex -o$@ -d $(filter-out FORCE,$^)
+      cmd_lex.c = flex -o$@ -d $< $(obj)/parse.h
 
-$(obj)/lex.c: $(obj)/lex.l $(obj)/parse.h FORCE
+$(obj)/lex.c: $(obj)/lex.l $(obj)/parse.h $(obj)/keywords.c FORCE
        $(call if_changed,lex.c)
+       cp $@ $@_shipped
 
 # bison
 
@@ -39,6 +41,8 @@ quiet_cmd_parse.c = BISON   $@
 
 $(obj)/parse.c: $(obj)/parse.y FORCE
        $(call if_changed,parse.c)
+       cp $@ $@_shipped
+       cp $(@:.c=.h) $(@:.c=.h)_shipped
 
 $(obj)/parse.h: $(obj)/parse.c ;