Rename and add installation target.
This commit is contained in:
parent
164cfa83c2
commit
759aa9b98d
3 changed files with 35 additions and 12 deletions
20
src/Makefile
20
src/Makefile
|
@ -27,11 +27,11 @@
|
|||
default: imports
|
||||
|
||||
.PHONY: static
|
||||
static: ../bbstool
|
||||
static: ../hackerbase
|
||||
|
||||
CSC=csc
|
||||
|
||||
BBSTOOL-DEPS=bbstool.scm testing.import.scm listing.import.scm \
|
||||
HACKERBASE-DEPS=hackerbase.scm testing.import.scm listing.import.scm \
|
||||
dictionary.import.scm month.import.scm period.import.scm \
|
||||
ansi.import.scm command-line.import.scm \
|
||||
members-base.import.scm primes.import.scm \
|
||||
|
@ -47,7 +47,7 @@ BBSTOOL-DEPS=bbstool.scm testing.import.scm listing.import.scm \
|
|||
util-string.import.scm util-io.import.scm \
|
||||
util-list.import.scm util-parser.import.scm texts.import.scm
|
||||
|
||||
BBSTOOL-OBJS=bbstool.o testing.o listing.o month.o period.o ansi.o \
|
||||
HACKERBASE-OBJS=hackerbase.o testing.o listing.o month.o period.o ansi.o \
|
||||
dictionary.o command-line.o members-base.o primes.o \
|
||||
member-record.o configuration.o progress.o table.o cards.o \
|
||||
members-print.o member-fees.o members-dir.o util-csv.o \
|
||||
|
@ -57,14 +57,18 @@ BBSTOOL-OBJS=bbstool.o testing.o listing.o month.o period.o ansi.o \
|
|||
util-list.o util-parser.o texts.o
|
||||
|
||||
.PHONY: imports
|
||||
imports: $(BBSTOOL-DEPS)
|
||||
imports: $(HACKERBASE-DEPS)
|
||||
|
||||
../bbstool: $(BBSTOOL-OBJS)
|
||||
$(CSC) -static -o $@ $(BBSTOOL-OBJS)
|
||||
../hackerbase: $(HACKERBASE-OBJS)
|
||||
$(CSC) -static -o $@ $(HACKERBASE-OBJS)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f *.c *.link *.o *.import.scm ../bbstool
|
||||
rm -f *.c *.link *.o *.import.scm ../hackerbase
|
||||
|
||||
.PHONY: install
|
||||
install: static
|
||||
install -m 0755 ../hackerbase /usr/local/bin/
|
||||
|
||||
################################################################
|
||||
# Module static and shared object and import source compilation
|
||||
|
@ -79,7 +83,7 @@ clean:
|
|||
################################################################
|
||||
# Main program
|
||||
|
||||
bbstool.o: $(BBSTOOL-DEPS)
|
||||
hackerbase.o: $(HACKERBASE-DEPS)
|
||||
|
||||
################################################################
|
||||
# Modules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue