more makefile stuff

This commit is contained in:
zetaPRIME 2017-01-17 02:12:14 -05:00
parent db49f95833
commit 3774089a70

View File

@ -100,19 +100,20 @@ export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
all: $(BUILD) all: $(BUILD)
dist-bin: all dist-bin: all
rm -rf include/ @rm -rf include/
rsync -a --include '*/' --include '*.h' --include '*.hpp' --exclude '*' source/ include/ @rsync -a --include '*/' --include '*.h' --include '*.hpp' --exclude '*' source/ include/
@tar --exclude=*~ -cjf libstarlight-$(VERSION).tar.bz2 include lib @tar --exclude=*~ -cjf libstarlight-$(VERSION).tar.bz2 include lib
dist-src: dist-src:
rm -rf include/ @rm -rf include/
rsync -a --include '*/' --include '*.h' --include '*.hpp' --exclude '*' source/ include/ @rsync -a --include '*/' --include '*.h' --include '*.hpp' --exclude '*' source/ include/
@tar --exclude=*~ -cjf libstarlight-src-$(VERSION).tar.bz2 include source data Makefile Doxyfile Doxyfile.internal @tar --exclude=*~ -cjf libstarlight-src-$(VERSION).tar.bz2 include source data Makefile Doxyfile Doxyfile.internal
dist: dist-src dist-bin dist: dist-src dist-bin
install: dist-bin install: dist-bin
mkdir -p $(DEVKITPRO)/libstarlight @rm -rf $(DEVKITPRO)/libstarlight
@mkdir -p $(DEVKITPRO)/libstarlight
bzip2 -cd libstarlight-$(VERSION).tar.bz2 | tar -xf - -C $(DEVKITPRO)/libstarlight bzip2 -cd libstarlight-$(VERSION).tar.bz2 | tar -xf - -C $(DEVKITPRO)/libstarlight
dox: dox:
@ -129,7 +130,7 @@ $(BUILD): lib
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
clean: clean:
@echo clean ... @echo clean ...
@rm -fr $(BUILD) lib docs internal_docs @rm -fr $(BUILD) lib include docs internal_docs
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
else else