mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-06-21 21:32:40 +02:00
add dist target
This commit is contained in:
parent
c889e7ca31
commit
e5264fe54c
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ build
|
|||||||
*.pfs0
|
*.pfs0
|
||||||
*.nacp
|
*.nacp
|
||||||
*.nro
|
*.nro
|
||||||
|
*.bz2
|
||||||
|
6
Makefile
6
Makefile
@ -1,7 +1,13 @@
|
|||||||
MAKEFILES := $(shell find . -mindepth 2 -name Makefile)
|
MAKEFILES := $(shell find . -mindepth 2 -name Makefile)
|
||||||
|
|
||||||
|
DATESTRING := $(shell date +%Y)$(shell date +%m)$(shell date +%d)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@for i in $(MAKEFILES); do $(MAKE) -C `dirname $$i` || exit 1; done;
|
@for i in $(MAKEFILES); do $(MAKE) -C `dirname $$i` || exit 1; done;
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@rm -f *.bz2
|
||||||
@for i in $(MAKEFILES); do $(MAKE) -C `dirname $$i` clean || exit 1; done;
|
@for i in $(MAKEFILES); do $(MAKE) -C `dirname $$i` clean || exit 1; done;
|
||||||
|
|
||||||
|
dist: clean
|
||||||
|
@tar -cvjf switch-examples-$(DATESTRING).tar.bz2 *
|
||||||
|
Loading…
Reference in New Issue
Block a user