mirror of
https://github.com/dschmenk/apple2pi.git
synced 2024-11-24 12:31:30 +00:00
Clean up Makefile
This commit is contained in:
parent
13d534b027
commit
aa4c9e9a2e
19
src/Makefile
19
src/Makefile
@ -1,9 +1,10 @@
|
|||||||
PACKAGE=a2pi
|
PACKAGE=a2pi
|
||||||
VERSION=0.9.0
|
VERSION=0.9.0
|
||||||
|
PREFIX=/usr/local
|
||||||
BIN= a2serclk a2pid a2joy a2joymou a2joypad a2mon a2term dskread dskwrite bintomon bload brun text2merlin merlin2text
|
BIN= a2serclk a2pid a2joy a2joymou a2joypad a2mon a2term dskread dskwrite bintomon bload brun text2merlin merlin2text
|
||||||
BINDIR= /usr/local/bin
|
BINDIR=$(PREFIX)/bin
|
||||||
DIST=$(PACKAGE)-$(VERSION)
|
DIST=$(PACKAGE)-$(VERSION)
|
||||||
DISTDIR=$(DIST)
|
DISTDIR=./$(DIST)
|
||||||
|
|
||||||
all: $(BIN) fusea2pi
|
all: $(BIN) fusea2pi
|
||||||
|
|
||||||
@ -11,7 +12,7 @@ fusea2pi: fusea2pi.c a2lib.c
|
|||||||
$(CC) -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 fusea2pi.c -lfuse -o fusea2pi
|
$(CC) -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 fusea2pi.c -lfuse -o fusea2pi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(BIN) *~ fusea2pi
|
-rm $(BIN) *~ fusea2pi
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp $(BIN) fusea2pi a2mount $(BINDIR)
|
cp $(BIN) fusea2pi a2mount $(BINDIR)
|
||||||
@ -21,7 +22,7 @@ uninstall:
|
|||||||
cd $(BINDIR); rm $(BIN) fusea2pi a2mount
|
cd $(BINDIR); rm $(BIN) fusea2pi a2mount
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
rm -rf $(DISTDIR)
|
-rm -rf $(DISTDIR)
|
||||||
mkdir $(DISTDIR)
|
mkdir $(DISTDIR)
|
||||||
-chmod 777 $(DISTDIR)
|
-chmod 777 $(DISTDIR)
|
||||||
cp ../LICENSE.txt $(DISTDIR)
|
cp ../LICENSE.txt $(DISTDIR)
|
||||||
@ -29,9 +30,13 @@ dist:
|
|||||||
mkdir $(DISTDIR)/docs
|
mkdir $(DISTDIR)/docs
|
||||||
cp ../docs/* $(DISTDIR)/docs
|
cp ../docs/* $(DISTDIR)/docs
|
||||||
mkdir $(DISTDIR)/src
|
mkdir $(DISTDIR)/src
|
||||||
cp ../src/*.c $(DISTDIR)/src
|
cp *.c $(DISTDIR)/src
|
||||||
cp ../src/*.sh $(DISTDIR)/src
|
cp *.sh $(DISTDIR)/src
|
||||||
cp ../src/Makefile $(DISTDIR)/src
|
cp *.conf $(DISTDIR)/src
|
||||||
|
cp *.bin $(DISTDIR)/src
|
||||||
|
cp *.mon $(DISTDIR)/src
|
||||||
|
cp *.PO $(DISTDIR)/src
|
||||||
|
cp a2mount execfile Makefile $(DISTDIR)/src
|
||||||
-chmod -R a+r $(DISTDIR)
|
-chmod -R a+r $(DISTDIR)
|
||||||
tar czf $(DIST).tar.gz $(DISTDIR)
|
tar czf $(DIST).tar.gz $(DISTDIR)
|
||||||
rm -rf $(DISTDIR)
|
rm -rf $(DISTDIR)
|
Loading…
Reference in New Issue
Block a user