magimail/src/Makefile: normalize targets

There were separate `freebsd`, `linux`, `cleanlinux`
and `cleanfreebsd` targets.  But these just did the
same thing, so simplify them to just have an `all`
and a `clean` target: this means we have less to plumb
through from the top-level Magicka GNUmakefile.

Signed-off-by: Dan Cross <patchdev@fat-dragon.org>
This commit is contained in:
Dan Cross 2018-10-09 15:55:11 +00:00 committed by Andrew Pamment
parent 4ed5319798
commit fb64c2e924
2 changed files with 16 additions and 26 deletions

View File

@ -7,19 +7,15 @@ help:
@echo gmake cleanfreebsd .... Remove object files under FreeBSD @echo gmake cleanfreebsd .... Remove object files under FreeBSD
@echo make cleanlinux ....... Remove object files under Linux @echo make cleanlinux ....... Remove object files under Linux
freebsd : all:
mkdir -p bin mkdir -p bin
gmake -C src -f Makefile freebsd ${MAKE} -C src -f Makefile all
linux : clean:
mkdir -p bin
make -C src -f Makefile linux
cleanfreebsd :
rm -rf bin rm -rf bin
gmake -C src -f Makefile cleanfreebsd ${MAKE} -C src -f Makefile clean
cleanlinux :
rm -rf bin
make -C src -f Makefile cleanlinux
freebsd: all
linux: all
cleanfreebsd: clean
cleanlinux: clean

View File

@ -1,29 +1,23 @@
# type either "make linux" or "make win32" to compile # type either "make all" or "make win32" to compile
help: help:
@echo You can use this Makefile in the following ways: @echo You can use this Makefile in the following ways:
@echo make linux ............ Make Linux binaries @echo make linux ............ Make Linux binaries
@echo make cleanlinux ....... Remove object files under Linux @echo make cleanlinux ....... Remove object files under Linux
freebsd: all:
mkdir -p obj mkdir -p obj
gmake -C cmnllib -f Makefile.linux gmake -C cmnllib -f Makefile.linux
gmake -C oslib_linux gmake -C oslib_linux
gmake -f Makefile.linux gmake -f Makefile.linux
linux : clean:
mkdir -p obj
make -C cmnllib -f Makefile.linux
make -C oslib_linux
make -f Makefile.linux
cleanfreebsd :
gmake -C cmnllib -f Makefile.linux clean gmake -C cmnllib -f Makefile.linux clean
gmake -C oslib_linux clean gmake -C oslib_linux clean
gmake -f Makefile.linux clean gmake -f Makefile.linux clean
cleanlinux :
make -C cmnllib -f Makefile.linux clean
make -C oslib_linux clean
make -f Makefile.linux clean
freebsd: all
linux: all
cleanlinux: clean
cleanfreebsd: clean