Skip to content

Commit

Permalink
New Makefile, read/use version from it, and bump to 1.04
Browse files Browse the repository at this point in the history
  • Loading branch information
chungy committed Sep 22, 2015
1 parent 1f61cf1 commit 7fa180a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
VERSION = v1.04
CPPFLAGS += -DVERSION=\"$(VERSION)\"

PROGS = bin2ecm bin2iso bincomp brrrip byteshuf byteswap cdpatch \
fakecrc hax65816 id3point pecompat rels screamf subfile \
uips usfv vb2rip wordadd zerofill

.PHONY: all clean install

all: $(PROGS)

clean:
rm -f $(PROGS)

prefix?=/usr/local
bindir?=/bin
target=$(DESTDIR)$(prefix)

install-%: %
install -d "$(target)$(bindir)"
install $< "$(target)$(bindir)"

install-ecm2bin: install-bin2ecm
ln -s bin2ecm "$(target)$(bindir)/ecm2bin"

install: install-bin2ecm install-ecm2bin install-bin2iso install-bincomp \
install-brrrip install-byteshuf install-byteswap install-cdpatch \
install-fakecrc install-hax65816 install-id3point install-pecompat \
install-rels install-screamf install-subfile install-uips \
install-usfv install-vb2rip install-wordadd install-zerofill
2 changes: 1 addition & 1 deletion banner.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ void banner_ok(void) {
printf(TITLE "\n"
" " COPYR "\n"
" from Command-Line Pack "
#include "version.h"
VERSION
" (%d-bit "

#if defined(__CYGWIN__)
Expand Down
1 change: 0 additions & 1 deletion version.h

This file was deleted.

0 comments on commit 7fa180a

Please sign in to comment.