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:
parent
4ed5319798
commit
fb64c2e924
@ -7,19 +7,15 @@ help:
|
||||
@echo gmake cleanfreebsd .... Remove object files under FreeBSD
|
||||
@echo make cleanlinux ....... Remove object files under Linux
|
||||
|
||||
freebsd :
|
||||
all:
|
||||
mkdir -p bin
|
||||
gmake -C src -f Makefile freebsd
|
||||
${MAKE} -C src -f Makefile all
|
||||
|
||||
linux :
|
||||
mkdir -p bin
|
||||
make -C src -f Makefile linux
|
||||
|
||||
cleanfreebsd :
|
||||
clean:
|
||||
rm -rf bin
|
||||
gmake -C src -f Makefile cleanfreebsd
|
||||
|
||||
cleanlinux :
|
||||
rm -rf bin
|
||||
make -C src -f Makefile cleanlinux
|
||||
${MAKE} -C src -f Makefile clean
|
||||
|
||||
freebsd: all
|
||||
linux: all
|
||||
cleanfreebsd: clean
|
||||
cleanlinux: clean
|
||||
|
@ -1,29 +1,23 @@
|
||||
# type either "make linux" or "make win32" to compile
|
||||
# type either "make all" or "make win32" to compile
|
||||
|
||||
help:
|
||||
@echo You can use this Makefile in the following ways:
|
||||
@echo make linux ............ Make Linux binaries
|
||||
@echo make cleanlinux ....... Remove object files under Linux
|
||||
|
||||
freebsd:
|
||||
all:
|
||||
mkdir -p obj
|
||||
gmake -C cmnllib -f Makefile.linux
|
||||
gmake -C oslib_linux
|
||||
gmake -f Makefile.linux
|
||||
|
||||
linux :
|
||||
mkdir -p obj
|
||||
make -C cmnllib -f Makefile.linux
|
||||
make -C oslib_linux
|
||||
make -f Makefile.linux
|
||||
|
||||
cleanfreebsd :
|
||||
clean:
|
||||
gmake -C cmnllib -f Makefile.linux clean
|
||||
gmake -C oslib_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
|
||||
|
Reference in New Issue
Block a user