mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
change install to include fxSDK CMake files
This commit is contained in:
parent
ee7c5d63ca
commit
94e1dd4da9
1 changed files with 18 additions and 9 deletions
27
Makefile
27
Makefile
|
@ -18,9 +18,8 @@ dflags = -MT $@ -MMD -MP -MF $(@:%.o=%.d)
|
||||||
# $TARGETS is provided by Makefile.cfg.
|
# $TARGETS is provided by Makefile.cfg.
|
||||||
#
|
#
|
||||||
|
|
||||||
TARGETS := $(TARGETS:fxsdk=fxsdk.sh)
|
INSTALL := $(TARGETS:%=install-%)
|
||||||
TARGETS := $(TARGETS:fxconv=fxconv-main.py)
|
TARGETS := $(TARGETS:%=all-%)
|
||||||
bin = $(TARGETS:%=bin/%)
|
|
||||||
|
|
||||||
# fxconv has no sources files because it's written in Python, and fxsdk has no
|
# fxconv has no sources files because it's written in Python, and fxsdk has no
|
||||||
# source either because it's written in Bash.
|
# source either because it's written in Bash.
|
||||||
|
@ -37,7 +36,7 @@ endif
|
||||||
|
|
||||||
# Symbolic targets
|
# Symbolic targets
|
||||||
|
|
||||||
all: $(bin)
|
all: $(TARGETS)
|
||||||
|
|
||||||
all-fxsdk: bin/fxsdk.sh
|
all-fxsdk: bin/fxsdk.sh
|
||||||
all-fxg1a: bin/fxg1a
|
all-fxg1a: bin/fxg1a
|
||||||
|
@ -49,7 +48,6 @@ bin/fxsdk.sh: fxsdk/fxsdk.sh | bin/
|
||||||
sed $(sed) $< > $@
|
sed $(sed) $< > $@
|
||||||
bin/fxg1a: $(obj-fxg1a) | bin/
|
bin/fxg1a: $(obj-fxg1a) | bin/
|
||||||
gcc $^ -o $@ $(lflags)
|
gcc $^ -o $@ $(lflags)
|
||||||
|
|
||||||
bin/:
|
bin/:
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
|
@ -58,7 +56,7 @@ bin/:
|
||||||
#
|
#
|
||||||
|
|
||||||
build/%.c.o: %.c
|
build/%.c.o: %.c
|
||||||
@mkdir -p $(dir $@)
|
@ mkdir -p $(dir $@)
|
||||||
gcc -c $< -o $@ $(cflags) $(dflags)
|
gcc -c $< -o $@ $(cflags) $(dflags)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -89,19 +87,30 @@ m644 :=
|
||||||
m755 :=
|
m755 :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install: $(bin)
|
install: $(INSTALL)
|
||||||
|
|
||||||
|
install-fxsdk: all-fxsdk
|
||||||
install -d $(PREFIX)/bin
|
install -d $(PREFIX)/bin
|
||||||
install -d $(PREFIX)/share/fxsdk
|
install bin/fxsdk.sh $(PREFIX)/bin/fxsdk
|
||||||
install $(filter bin/fxg1a,$(bin)) $(m755) $(PREFIX)/bin
|
|
||||||
install -d $(PREFIX)/share/fxsdk/assets
|
install -d $(PREFIX)/share/fxsdk/assets
|
||||||
install fxsdk/assets/* $(m644) $(PREFIX)/share/fxsdk/assets
|
install fxsdk/assets/* $(m644) $(PREFIX)/share/fxsdk/assets
|
||||||
install bin/fxsdk.sh $(m755) $(PREFIX)/bin/fxsdk
|
install bin/fxsdk.sh $(m755) $(PREFIX)/bin/fxsdk
|
||||||
|
install -d $(PREFIX)/lib/cmake/fxsdk
|
||||||
|
install fxsdk/cmake/* $(m644) $(PREFIX)/lib/cmake/fxsdk
|
||||||
|
|
||||||
|
install-fxg1a: all-fxg1a
|
||||||
|
install -d $(PREFIX)/bin
|
||||||
|
install bin/fxg1a $(m755) $(PREFIX)/bin
|
||||||
|
|
||||||
|
install-fxconv: all-fxconv
|
||||||
|
install -d $(PREFIX)/bin
|
||||||
install fxconv/fxconv-main.py $(m755) $(PREFIX)/bin/fxconv
|
install fxconv/fxconv-main.py $(m755) $(PREFIX)/bin/fxconv
|
||||||
install fxconv/fxconv.py $(m644) $(PREFIX)/bin
|
install fxconv/fxconv.py $(m644) $(PREFIX)/bin
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(PREFIX)/bin/{fxsdk,fxg1a,fxconv,fxconv.py}
|
rm -f $(PREFIX)/bin/{fxsdk,fxg1a,fxconv,fxconv.py}
|
||||||
rm -rf $(PREFIX)/share/fxsdk
|
rm -rf $(PREFIX)/share/fxsdk
|
||||||
|
rm -rf $(PREFIX)/lib/cmake/fxsdk
|
||||||
|
|
||||||
#
|
#
|
||||||
# Cleaning
|
# Cleaning
|
||||||
|
|
Loading…
Reference in a new issue