Skip to content

Commit

Permalink
update make file & README
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Jun 10, 2022
1 parent e2a4b2e commit ecd900a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 28 deletions.
36 changes: 10 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,40 +1,24 @@
CC=cl65
CFLAGS=-ttelestrat
PROGRAM=gunzip
HOMEDIR=/home/travis/bin/
HOMEDIR_PROGRAM=/home/travis/build/orix-software/$(PROGRAM)

SOURCE=src/$(PROGRAM).c
LDFILES=

ifdef TRAVIS_BRANCH
ifeq ($(TRAVIS_BRANCH), master)
RELEASE:=$(shell cat VERSION)
ifeq ($(CC65_HOME),)
CC = cl65
AS = ca65
LD = ld65
AR = ar65
else
RELEASE=alpha
CC = $(CC65_HOME)/bin/cl65
AS = $(CC65_HOME)/bin/ca65
LD = $(CC65_HOME)/bin/ld65
AR = $(CC65_HOME)/bin/ar65
endif
endif


ASFLAGS=-C -W -e error.txt -l xa_labels.txt -DTARGET_ORIX

$(PROGRAM): $(SOURCE)
$(CC) -o $(PROGRAM) $(CFLAGS) $(LDFILES) $(SOURCE)
mkdir build/bin -p && mv gunzip build/bin
mkdir build/usr/share/man -p && cp src/man/gunzip.hlp build/usr/share/man

test:
mkdir -p build/bin/
mkdir -p build/usr/share/man
mkdir -p build/usr/share/ipkg
mkdir -p build/usr/share/doc/$(PROGRAM)/
cp $(PROGRAM) build/bin/
cd $(HOMEDIR) && cat $(HOMEDIR_PROGRAM)/src/man/$(PROGRAM).md | md2hlp.py > $(HOMEDIR_PROGRAM)/build/usr/share/man/$(PROGRAM).hlp
cp README.md build/usr/share/doc/$(PROGRAM)/
cp src/ipkg/$(PROGRAM).csv build/usr/share/ipkg
cd build && tar -c * > ../$(PROGRAM).tar && cd ..
filepack $(PROGRAM).tar $(PROGRAM).pkg
gzip $(PROGRAM).tar
mv $(PROGRAM).tar.gz $(PROGRAM).tgz
php buildTestAndRelease/publish/publish2repo.php $(PROGRAM).tgz ${hash} 6502 tgz $(RELEASE)
echo nothing

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/oric-software/gunzip.svg?branch=master)](https://travis-ci.org/oric-software/gunzip)
# gunzip

#gunzip
[![Build Status](https://travis-ci.org/orix-software/gunzip.svg?branch=master)](https://travis-ci.org/orix-software/gunzip)

0 comments on commit ecd900a

Please sign in to comment.