Skip to content

Commit 5dcbdcf

Browse files
authored
standardise install target, remove unused version number (#575)
1 parent 8340db6 commit 5dcbdcf

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

libctru/Makefile

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ endif
88

99
include $(DEVKITARM)/base_rules
1010

11-
export LIBCTRU_MAJOR := 2
12-
export LIBCTRU_MINOR := 4
13-
export LIBCTRU_PATCH := 0
14-
15-
16-
VERSION := $(LIBCTRU_MAJOR).$(LIBCTRU_MINOR).$(LIBCTRU_PATCH)
17-
1811
#---------------------------------------------------------------------------------
1912
# TARGET is the name of the output
2013
# BUILD is the directory where object files & intermediate files will be placed
@@ -107,18 +100,9 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
107100
#---------------------------------------------------------------------------------
108101
all: lib/libctru.a lib/libctrud.a
109102

110-
dist-bin: all
111-
@tar --exclude=*~ -cjf libctru-$(VERSION).tar.bz2 include lib default_icon.png
112-
113-
dist-src:
114-
@tar --exclude=*~ -cjf libctru-src-$(VERSION).tar.bz2 include source data Makefile Doxyfile default_icon.png
115-
116-
dist: dist-src dist-bin
117-
118-
install: dist-bin
103+
install: all
119104
mkdir -p $(DESTDIR)$(DEVKITPRO)/libctru
120-
bzip2 -cd libctru-$(VERSION).tar.bz2 | tar -xf - -C $(DESTDIR)$(DEVKITPRO)/libctru
121-
105+
@cp -rv include lib default_icon.png $(DESTDIR)$(DEVKITPRO)/libctru/
122106
lib:
123107
@[ -d $@ ] || mkdir -p $@
124108

0 commit comments

Comments
 (0)