xwords/xwords4/android/scripts/Variant.mk
2014-02-10 18:32:00 -08:00

32 lines
784 B
Makefile

# -*- mode: Makefile; -*-
$(DEST_PATH)/%.java : $(SRC_PATH)/%.java
@sed \
-e "s,\(package org.eehouse.android.\)xw4\(.*\);,\1$(VARIANT)\2;," \
-e "s,\(import org.eehouse.android.\)xw4\(.*\);,\1$(VARIANT)\2;," \
< $< > $@
$(DEST_PATH)/%.png : $(SRC_PATH)/%.png
@cp $< $@
$(DEST_PATH)/%.xml : $(SRC_PATH)/%.xml
@sed \
-e "s,\(^.*org.eehouse.android.\)xw4\(.*$$\),\1$(VARIANT)\2," \
-e "s,Crosswords,$(APPNAME),g" \
< $< > $@
$(DEST_PATH)/%.h : $(SRC_PATH)/%.h
@sed \
-e "s,\(^.*org/eehouse/android/\)xw4\(.*$$\),\1$(VARIANT)\2," \
< $< > $@
$(DEST_PATH)/%.c : $(SRC_PATH)/%.c
@sed \
-e "s,\(^.*Java_org_eehouse_android_\)xw4\(.*$$\),\1$(VARIANT)\2," \
< $< > $@
$(DEST_PATH)/%.jar : $(SRC_PATH)/%.jar
@cp $< $@
$(DEST_PATH)/% : $(SRC_PATH)/%
@cp $< $@